• 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/aiagentextract/AiAgentExtract.java
1
package com.box.sdkgen.schemas.aiagentextract;
2

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

14
/** The AI agent to be used for extraction. */
15
@JsonFilter("nullablePropertyFilter")
16
public class AiAgentExtract extends SerializableObject {
17

18
  /** The type of AI agent to be used for extraction. */
19
  @JsonDeserialize(using = AiAgentExtractTypeField.AiAgentExtractTypeFieldDeserializer.class)
20
  @JsonSerialize(using = AiAgentExtractTypeField.AiAgentExtractTypeFieldSerializer.class)
21
  protected EnumWrapper<AiAgentExtractTypeField> type;
22

23
  @JsonProperty("long_text")
24
  protected AiAgentLongTextTool longText;
25

26
  @JsonProperty("basic_text")
27
  protected AiAgentBasicTextTool basicText;
28

29
  @JsonProperty("basic_image")
30
  protected AiAgentBasicTextTool basicImage;
31

32
  public AiAgentExtract() {
33
    super();
×
34
    this.type = new EnumWrapper<AiAgentExtractTypeField>(AiAgentExtractTypeField.AI_AGENT_EXTRACT);
×
35
  }
×
36

37
  protected AiAgentExtract(Builder builder) {
38
    super();
×
39
    this.type = builder.type;
×
40
    this.longText = builder.longText;
×
41
    this.basicText = builder.basicText;
×
42
    this.basicImage = builder.basicImage;
×
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
44
  }
×
45

46
  public EnumWrapper<AiAgentExtractTypeField> getType() {
47
    return type;
×
48
  }
49

50
  public AiAgentLongTextTool getLongText() {
51
    return longText;
×
52
  }
53

54
  public AiAgentBasicTextTool getBasicText() {
55
    return basicText;
×
56
  }
57

58
  public AiAgentBasicTextTool getBasicImage() {
59
    return basicImage;
×
60
  }
61

62
  @Override
63
  public boolean equals(Object o) {
64
    if (this == o) {
×
65
      return true;
×
66
    }
67
    if (o == null || getClass() != o.getClass()) {
×
68
      return false;
×
69
    }
70
    AiAgentExtract casted = (AiAgentExtract) o;
×
71
    return Objects.equals(type, casted.type)
×
72
        && Objects.equals(longText, casted.longText)
×
73
        && Objects.equals(basicText, casted.basicText)
×
74
        && Objects.equals(basicImage, casted.basicImage);
×
75
  }
76

77
  @Override
78
  public int hashCode() {
79
    return Objects.hash(type, longText, basicText, basicImage);
×
80
  }
81

82
  @Override
83
  public String toString() {
84
    return "AiAgentExtract{"
×
85
        + "type='"
86
        + type
87
        + '\''
88
        + ", "
89
        + "longText='"
90
        + longText
91
        + '\''
92
        + ", "
93
        + "basicText='"
94
        + basicText
95
        + '\''
96
        + ", "
97
        + "basicImage='"
98
        + basicImage
99
        + '\''
100
        + "}";
101
  }
102

103
  public static class Builder extends NullableFieldTracker {
104

105
    protected EnumWrapper<AiAgentExtractTypeField> type;
106

107
    protected AiAgentLongTextTool longText;
108

109
    protected AiAgentBasicTextTool basicText;
110

111
    protected AiAgentBasicTextTool basicImage;
112

113
    public Builder() {
114
      super();
×
115
    }
×
116

117
    public Builder type(AiAgentExtractTypeField type) {
UNCOV
118
      this.type = new EnumWrapper<AiAgentExtractTypeField>(type);
×
UNCOV
119
      return this;
×
120
    }
121

122
    public Builder type(EnumWrapper<AiAgentExtractTypeField> type) {
UNCOV
123
      this.type = type;
×
UNCOV
124
      return this;
×
125
    }
126

127
    public Builder longText(AiAgentLongTextTool longText) {
UNCOV
128
      this.longText = longText;
×
UNCOV
129
      return this;
×
130
    }
131

132
    public Builder basicText(AiAgentBasicTextTool basicText) {
UNCOV
133
      this.basicText = basicText;
×
UNCOV
134
      return this;
×
135
    }
136

137
    public Builder basicImage(AiAgentBasicTextTool basicImage) {
UNCOV
138
      this.basicImage = basicImage;
×
UNCOV
139
      return this;
×
140
    }
141

142
    public AiAgentExtract build() {
NEW
143
      if (this.type == null) {
×
NEW
144
        this.type =
×
145
            new EnumWrapper<AiAgentExtractTypeField>(AiAgentExtractTypeField.AI_AGENT_EXTRACT);
146
      }
UNCOV
147
      return new AiAgentExtract(this);
×
148
    }
149
  }
150
}
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