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

box / box-java-sdk / #6241

10 Feb 2026 05:27PM UTC coverage: 24.324% (+11.5%) from 12.84%
#6241

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2130 existing lines in 537 files now uncovered.

7388 of 30373 relevant lines covered (24.32%)

0.28 hits per line

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

0.0
/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();
×
27
    this.type = new EnumWrapper<AiAgentTextGenTypeField>(AiAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
×
28
  }
×
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;
×
39
  }
40

41
  public AiAgentBasicGenTool getBasicGen() {
42
    return basicGen;
×
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
    }
×
76

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

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

87
    public Builder basicGen(AiAgentBasicGenTool basicGen) {
UNCOV
88
      this.basicGen = basicGen;
×
UNCOV
89
      return this;
×
90
    }
91

92
    public AiAgentTextGen build() {
NEW
93
      if (this.type == null) {
×
NEW
94
        this.type =
×
95
            new EnumWrapper<AiAgentTextGenTypeField>(AiAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
96
      }
UNCOV
97
      return new AiAgentTextGen(this);
×
98
    }
99
  }
100
}
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