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

box / box-java-sdk / #6243

10 Feb 2026 05:27PM UTC coverage: 18.192% (-17.5%) from 35.714%
#6243

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%)

2147 existing lines in 545 files now uncovered.

7388 of 40611 relevant lines covered (18.19%)

0.21 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/aiagentask/AiAgentAsk.java
1
package com.box.sdkgen.schemas.aiagentask;
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.schemas.aiagentspreadsheettool.AiAgentSpreadsheetTool;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
import java.util.Objects;
14

15
/** The AI agent used to handle queries. */
16
@JsonFilter("nullablePropertyFilter")
17
public class AiAgentAsk extends SerializableObject {
18

19
  /** The type of AI agent used to handle queries. */
20
  @JsonDeserialize(using = AiAgentAskTypeField.AiAgentAskTypeFieldDeserializer.class)
21
  @JsonSerialize(using = AiAgentAskTypeField.AiAgentAskTypeFieldSerializer.class)
22
  protected EnumWrapper<AiAgentAskTypeField> type;
23

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

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

30
  protected AiAgentSpreadsheetTool spreadsheet;
31

32
  @JsonProperty("long_text_multi")
33
  protected AiAgentLongTextTool longTextMulti;
34

35
  @JsonProperty("basic_text_multi")
36
  protected AiAgentBasicTextTool basicTextMulti;
37

38
  @JsonProperty("basic_image")
39
  protected AiAgentBasicTextTool basicImage;
40

41
  @JsonProperty("basic_image_multi")
42
  protected AiAgentBasicTextTool basicImageMulti;
43

44
  public AiAgentAsk() {
45
    super();
×
46
    this.type = new EnumWrapper<AiAgentAskTypeField>(AiAgentAskTypeField.AI_AGENT_ASK);
×
47
  }
×
48

49
  protected AiAgentAsk(Builder builder) {
50
    super();
×
51
    this.type = builder.type;
×
52
    this.longText = builder.longText;
×
53
    this.basicText = builder.basicText;
×
54
    this.spreadsheet = builder.spreadsheet;
×
55
    this.longTextMulti = builder.longTextMulti;
×
56
    this.basicTextMulti = builder.basicTextMulti;
×
57
    this.basicImage = builder.basicImage;
×
58
    this.basicImageMulti = builder.basicImageMulti;
×
59
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
60
  }
×
61

62
  public EnumWrapper<AiAgentAskTypeField> getType() {
63
    return type;
×
64
  }
65

66
  public AiAgentLongTextTool getLongText() {
67
    return longText;
×
68
  }
69

70
  public AiAgentBasicTextTool getBasicText() {
71
    return basicText;
×
72
  }
73

74
  public AiAgentSpreadsheetTool getSpreadsheet() {
75
    return spreadsheet;
×
76
  }
77

78
  public AiAgentLongTextTool getLongTextMulti() {
79
    return longTextMulti;
×
80
  }
81

82
  public AiAgentBasicTextTool getBasicTextMulti() {
83
    return basicTextMulti;
×
84
  }
85

86
  public AiAgentBasicTextTool getBasicImage() {
87
    return basicImage;
×
88
  }
89

90
  public AiAgentBasicTextTool getBasicImageMulti() {
91
    return basicImageMulti;
×
92
  }
93

94
  @Override
95
  public boolean equals(Object o) {
96
    if (this == o) {
×
97
      return true;
×
98
    }
99
    if (o == null || getClass() != o.getClass()) {
×
100
      return false;
×
101
    }
102
    AiAgentAsk casted = (AiAgentAsk) o;
×
103
    return Objects.equals(type, casted.type)
×
104
        && Objects.equals(longText, casted.longText)
×
105
        && Objects.equals(basicText, casted.basicText)
×
106
        && Objects.equals(spreadsheet, casted.spreadsheet)
×
107
        && Objects.equals(longTextMulti, casted.longTextMulti)
×
108
        && Objects.equals(basicTextMulti, casted.basicTextMulti)
×
109
        && Objects.equals(basicImage, casted.basicImage)
×
110
        && Objects.equals(basicImageMulti, casted.basicImageMulti);
×
111
  }
112

113
  @Override
114
  public int hashCode() {
115
    return Objects.hash(
×
116
        type,
117
        longText,
118
        basicText,
119
        spreadsheet,
120
        longTextMulti,
121
        basicTextMulti,
122
        basicImage,
123
        basicImageMulti);
124
  }
125

126
  @Override
127
  public String toString() {
128
    return "AiAgentAsk{"
×
129
        + "type='"
130
        + type
131
        + '\''
132
        + ", "
133
        + "longText='"
134
        + longText
135
        + '\''
136
        + ", "
137
        + "basicText='"
138
        + basicText
139
        + '\''
140
        + ", "
141
        + "spreadsheet='"
142
        + spreadsheet
143
        + '\''
144
        + ", "
145
        + "longTextMulti='"
146
        + longTextMulti
147
        + '\''
148
        + ", "
149
        + "basicTextMulti='"
150
        + basicTextMulti
151
        + '\''
152
        + ", "
153
        + "basicImage='"
154
        + basicImage
155
        + '\''
156
        + ", "
157
        + "basicImageMulti='"
158
        + basicImageMulti
159
        + '\''
160
        + "}";
161
  }
162

163
  public static class Builder extends NullableFieldTracker {
164

165
    protected EnumWrapper<AiAgentAskTypeField> type;
166

167
    protected AiAgentLongTextTool longText;
168

169
    protected AiAgentBasicTextTool basicText;
170

171
    protected AiAgentSpreadsheetTool spreadsheet;
172

173
    protected AiAgentLongTextTool longTextMulti;
174

175
    protected AiAgentBasicTextTool basicTextMulti;
176

177
    protected AiAgentBasicTextTool basicImage;
178

179
    protected AiAgentBasicTextTool basicImageMulti;
180

181
    public Builder() {
182
      super();
×
183
    }
×
184

185
    public Builder type(AiAgentAskTypeField type) {
186
      this.type = new EnumWrapper<AiAgentAskTypeField>(type);
×
UNCOV
187
      return this;
×
188
    }
189

190
    public Builder type(EnumWrapper<AiAgentAskTypeField> type) {
191
      this.type = type;
×
UNCOV
192
      return this;
×
193
    }
194

195
    public Builder longText(AiAgentLongTextTool longText) {
196
      this.longText = longText;
×
UNCOV
197
      return this;
×
198
    }
199

200
    public Builder basicText(AiAgentBasicTextTool basicText) {
201
      this.basicText = basicText;
×
UNCOV
202
      return this;
×
203
    }
204

205
    public Builder spreadsheet(AiAgentSpreadsheetTool spreadsheet) {
206
      this.spreadsheet = spreadsheet;
×
UNCOV
207
      return this;
×
208
    }
209

210
    public Builder longTextMulti(AiAgentLongTextTool longTextMulti) {
211
      this.longTextMulti = longTextMulti;
×
UNCOV
212
      return this;
×
213
    }
214

215
    public Builder basicTextMulti(AiAgentBasicTextTool basicTextMulti) {
216
      this.basicTextMulti = basicTextMulti;
×
UNCOV
217
      return this;
×
218
    }
219

220
    public Builder basicImage(AiAgentBasicTextTool basicImage) {
221
      this.basicImage = basicImage;
×
UNCOV
222
      return this;
×
223
    }
224

225
    public Builder basicImageMulti(AiAgentBasicTextTool basicImageMulti) {
226
      this.basicImageMulti = basicImageMulti;
×
UNCOV
227
      return this;
×
228
    }
229

230
    public AiAgentAsk build() {
NEW
231
      if (this.type == null) {
×
NEW
232
        this.type = new EnumWrapper<AiAgentAskTypeField>(AiAgentAskTypeField.AI_AGENT_ASK);
×
233
      }
UNCOV
234
      return new AiAgentAsk(this);
×
235
    }
236
  }
237
}
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