• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

17.86
/src/main/java/com/box/sdkgen/schemas/aiagenttextgen/AiAgentTextGen.java
1
package com.box.sdkgen.schemas.aiagenttextgen;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.aiagentbasicgentool.AiAgentBasicGenTool;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.util.Objects;
12

13
/** The AI agent used for generating text. */
14
@JsonFilter("nullablePropertyFilter")
15
public class AiAgentTextGen extends SerializableObject {
16

17
  /** The type of AI agent used for generating text. */
18
  @JsonDeserialize(using = AiAgentTextGenTypeField.AiAgentTextGenTypeFieldDeserializer.class)
19
  @JsonSerialize(using = AiAgentTextGenTypeField.AiAgentTextGenTypeFieldSerializer.class)
20
  protected EnumWrapper<AiAgentTextGenTypeField> type;
21

22
  @JsonProperty("basic_gen")
23
  protected AiAgentBasicGenTool basicGen;
24

25
  public AiAgentTextGen() {
26
    super();
1✔
27
    this.type = new EnumWrapper<AiAgentTextGenTypeField>(AiAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
1✔
28
  }
1✔
29

30
  protected AiAgentTextGen(Builder builder) {
31
    super();
×
32
    this.type = builder.type;
×
33
    this.basicGen = builder.basicGen;
×
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
35
  }
×
36

37
  public EnumWrapper<AiAgentTextGenTypeField> getType() {
38
    return type;
1✔
39
  }
40

41
  public AiAgentBasicGenTool getBasicGen() {
42
    return basicGen;
1✔
43
  }
44

45
  @Override
46
  public boolean equals(Object o) {
47
    if (this == o) {
×
48
      return true;
×
49
    }
50
    if (o == null || getClass() != o.getClass()) {
×
51
      return false;
×
52
    }
53
    AiAgentTextGen casted = (AiAgentTextGen) o;
×
54
    return Objects.equals(type, casted.type) && Objects.equals(basicGen, casted.basicGen);
×
55
  }
56

57
  @Override
58
  public int hashCode() {
59
    return Objects.hash(type, basicGen);
×
60
  }
61

62
  @Override
63
  public String toString() {
64
    return "AiAgentTextGen{" + "type='" + type + '\'' + ", " + "basicGen='" + basicGen + '\'' + "}";
×
65
  }
66

67
  public static class Builder extends NullableFieldTracker {
68

69
    protected EnumWrapper<AiAgentTextGenTypeField> type;
70

71
    protected AiAgentBasicGenTool basicGen;
72

73
    public Builder() {
74
      super();
×
75
      this.type =
×
76
          new EnumWrapper<AiAgentTextGenTypeField>(AiAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
77
    }
×
78

79
    public Builder type(AiAgentTextGenTypeField type) {
80
      this.type = new EnumWrapper<AiAgentTextGenTypeField>(type);
×
81
      return this;
×
82
    }
83

84
    public Builder type(EnumWrapper<AiAgentTextGenTypeField> type) {
85
      this.type = type;
×
86
      return this;
×
87
    }
88

89
    public Builder basicGen(AiAgentBasicGenTool basicGen) {
90
      this.basicGen = basicGen;
×
91
      return this;
×
92
    }
93

94
    public AiAgentTextGen build() {
95
      return new AiAgentTextGen(this);
×
96
    }
97
  }
98
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc