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

3
import com.box.sdkgen.internal.Nullable;
4
import com.box.sdkgen.internal.NullableFieldTracker;
5
import com.box.sdkgen.internal.SerializableObject;
6
import com.box.sdkgen.schemas.aistudioagentbasictexttool.AiStudioAgentBasicTextTool;
7
import com.box.sdkgen.schemas.aistudioagentlongtexttool.AiStudioAgentLongTextTool;
8
import com.box.sdkgen.schemas.aistudioagentspreadsheettool.AiStudioAgentSpreadsheetTool;
9
import com.box.sdkgen.serialization.json.EnumWrapper;
10
import com.fasterxml.jackson.annotation.JsonFilter;
11
import com.fasterxml.jackson.annotation.JsonProperty;
12
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
13
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
14
import java.util.List;
15
import java.util.Objects;
16

17
/** The AI agent to be used to handle queries. */
18
@JsonFilter("nullablePropertyFilter")
19
public class AiStudioAgentAsk extends SerializableObject {
20

21
  /** The type of AI agent used to handle queries. */
22
  @JsonDeserialize(using = AiStudioAgentAskTypeField.AiStudioAgentAskTypeFieldDeserializer.class)
23
  @JsonSerialize(using = AiStudioAgentAskTypeField.AiStudioAgentAskTypeFieldSerializer.class)
24
  protected EnumWrapper<AiStudioAgentAskTypeField> type;
25

26
  /** The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */
27
  @JsonProperty("access_state")
28
  protected final String accessState;
29

30
  /** The description of the AI agent. */
31
  protected final String description;
32

33
  /** Custom instructions for the AI agent. */
34
  @JsonProperty("custom_instructions")
35
  @Nullable
36
  protected String customInstructions;
37

38
  /**
39
   * Suggested questions for the AI agent. If null, suggested question will be generated. If empty,
40
   * no suggested questions will be displayed.
41
   */
42
  @JsonProperty("suggested_questions")
43
  protected List<String> suggestedQuestions;
44

45
  @JsonProperty("long_text")
46
  protected AiStudioAgentLongTextTool longText;
47

48
  @JsonProperty("basic_text")
49
  protected AiStudioAgentBasicTextTool basicText;
50

51
  @JsonProperty("basic_image")
52
  protected AiStudioAgentBasicTextTool basicImage;
53

54
  protected AiStudioAgentSpreadsheetTool spreadsheet;
55

56
  @JsonProperty("long_text_multi")
57
  protected AiStudioAgentLongTextTool longTextMulti;
58

59
  @JsonProperty("basic_text_multi")
60
  protected AiStudioAgentBasicTextTool basicTextMulti;
61

62
  @JsonProperty("basic_image_multi")
63
  protected AiStudioAgentBasicTextTool basicImageMulti;
64

65
  public AiStudioAgentAsk(
66
      @JsonProperty("access_state") String accessState,
67
      @JsonProperty("description") String description) {
68
    super();
×
69
    this.accessState = accessState;
×
70
    this.description = description;
×
71
    this.type = new EnumWrapper<AiStudioAgentAskTypeField>(AiStudioAgentAskTypeField.AI_AGENT_ASK);
×
72
  }
×
73

74
  protected AiStudioAgentAsk(Builder builder) {
75
    super();
×
76
    this.type = builder.type;
×
77
    this.accessState = builder.accessState;
×
78
    this.description = builder.description;
×
79
    this.customInstructions = builder.customInstructions;
×
80
    this.suggestedQuestions = builder.suggestedQuestions;
×
81
    this.longText = builder.longText;
×
82
    this.basicText = builder.basicText;
×
83
    this.basicImage = builder.basicImage;
×
84
    this.spreadsheet = builder.spreadsheet;
×
85
    this.longTextMulti = builder.longTextMulti;
×
86
    this.basicTextMulti = builder.basicTextMulti;
×
87
    this.basicImageMulti = builder.basicImageMulti;
×
88
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
89
  }
×
90

91
  public EnumWrapper<AiStudioAgentAskTypeField> getType() {
92
    return type;
×
93
  }
94

95
  public String getAccessState() {
96
    return accessState;
×
97
  }
98

99
  public String getDescription() {
100
    return description;
×
101
  }
102

103
  public String getCustomInstructions() {
104
    return customInstructions;
×
105
  }
106

107
  public List<String> getSuggestedQuestions() {
108
    return suggestedQuestions;
×
109
  }
110

111
  public AiStudioAgentLongTextTool getLongText() {
112
    return longText;
×
113
  }
114

115
  public AiStudioAgentBasicTextTool getBasicText() {
116
    return basicText;
×
117
  }
118

119
  public AiStudioAgentBasicTextTool getBasicImage() {
120
    return basicImage;
×
121
  }
122

123
  public AiStudioAgentSpreadsheetTool getSpreadsheet() {
124
    return spreadsheet;
×
125
  }
126

127
  public AiStudioAgentLongTextTool getLongTextMulti() {
128
    return longTextMulti;
×
129
  }
130

131
  public AiStudioAgentBasicTextTool getBasicTextMulti() {
132
    return basicTextMulti;
×
133
  }
134

135
  public AiStudioAgentBasicTextTool getBasicImageMulti() {
136
    return basicImageMulti;
×
137
  }
138

139
  @Override
140
  public boolean equals(Object o) {
141
    if (this == o) {
×
142
      return true;
×
143
    }
144
    if (o == null || getClass() != o.getClass()) {
×
145
      return false;
×
146
    }
147
    AiStudioAgentAsk casted = (AiStudioAgentAsk) o;
×
148
    return Objects.equals(type, casted.type)
×
149
        && Objects.equals(accessState, casted.accessState)
×
150
        && Objects.equals(description, casted.description)
×
151
        && Objects.equals(customInstructions, casted.customInstructions)
×
152
        && Objects.equals(suggestedQuestions, casted.suggestedQuestions)
×
153
        && Objects.equals(longText, casted.longText)
×
154
        && Objects.equals(basicText, casted.basicText)
×
155
        && Objects.equals(basicImage, casted.basicImage)
×
156
        && Objects.equals(spreadsheet, casted.spreadsheet)
×
157
        && Objects.equals(longTextMulti, casted.longTextMulti)
×
158
        && Objects.equals(basicTextMulti, casted.basicTextMulti)
×
159
        && Objects.equals(basicImageMulti, casted.basicImageMulti);
×
160
  }
161

162
  @Override
163
  public int hashCode() {
164
    return Objects.hash(
×
165
        type,
166
        accessState,
167
        description,
168
        customInstructions,
169
        suggestedQuestions,
170
        longText,
171
        basicText,
172
        basicImage,
173
        spreadsheet,
174
        longTextMulti,
175
        basicTextMulti,
176
        basicImageMulti);
177
  }
178

179
  @Override
180
  public String toString() {
181
    return "AiStudioAgentAsk{"
×
182
        + "type='"
183
        + type
184
        + '\''
185
        + ", "
186
        + "accessState='"
187
        + accessState
188
        + '\''
189
        + ", "
190
        + "description='"
191
        + description
192
        + '\''
193
        + ", "
194
        + "customInstructions='"
195
        + customInstructions
196
        + '\''
197
        + ", "
198
        + "suggestedQuestions='"
199
        + suggestedQuestions
200
        + '\''
201
        + ", "
202
        + "longText='"
203
        + longText
204
        + '\''
205
        + ", "
206
        + "basicText='"
207
        + basicText
208
        + '\''
209
        + ", "
210
        + "basicImage='"
211
        + basicImage
212
        + '\''
213
        + ", "
214
        + "spreadsheet='"
215
        + spreadsheet
216
        + '\''
217
        + ", "
218
        + "longTextMulti='"
219
        + longTextMulti
220
        + '\''
221
        + ", "
222
        + "basicTextMulti='"
223
        + basicTextMulti
224
        + '\''
225
        + ", "
226
        + "basicImageMulti='"
227
        + basicImageMulti
228
        + '\''
229
        + "}";
230
  }
231

232
  public static class Builder extends NullableFieldTracker {
233

234
    protected EnumWrapper<AiStudioAgentAskTypeField> type;
235

236
    protected final String accessState;
237

238
    protected final String description;
239

240
    protected String customInstructions;
241

242
    protected List<String> suggestedQuestions;
243

244
    protected AiStudioAgentLongTextTool longText;
245

246
    protected AiStudioAgentBasicTextTool basicText;
247

248
    protected AiStudioAgentBasicTextTool basicImage;
249

250
    protected AiStudioAgentSpreadsheetTool spreadsheet;
251

252
    protected AiStudioAgentLongTextTool longTextMulti;
253

254
    protected AiStudioAgentBasicTextTool basicTextMulti;
255

256
    protected AiStudioAgentBasicTextTool basicImageMulti;
257

258
    public Builder(String accessState, String description) {
259
      super();
×
260
      this.accessState = accessState;
×
261
      this.description = description;
×
262
    }
×
263

264
    public Builder type(AiStudioAgentAskTypeField type) {
UNCOV
265
      this.type = new EnumWrapper<AiStudioAgentAskTypeField>(type);
×
UNCOV
266
      return this;
×
267
    }
268

269
    public Builder type(EnumWrapper<AiStudioAgentAskTypeField> type) {
UNCOV
270
      this.type = type;
×
UNCOV
271
      return this;
×
272
    }
273

274
    public Builder customInstructions(String customInstructions) {
275
      this.customInstructions = customInstructions;
×
UNCOV
276
      this.markNullableFieldAsSet("custom_instructions");
×
UNCOV
277
      return this;
×
278
    }
279

280
    public Builder suggestedQuestions(List<String> suggestedQuestions) {
UNCOV
281
      this.suggestedQuestions = suggestedQuestions;
×
UNCOV
282
      return this;
×
283
    }
284

285
    public Builder longText(AiStudioAgentLongTextTool longText) {
UNCOV
286
      this.longText = longText;
×
UNCOV
287
      return this;
×
288
    }
289

290
    public Builder basicText(AiStudioAgentBasicTextTool basicText) {
UNCOV
291
      this.basicText = basicText;
×
UNCOV
292
      return this;
×
293
    }
294

295
    public Builder basicImage(AiStudioAgentBasicTextTool basicImage) {
UNCOV
296
      this.basicImage = basicImage;
×
UNCOV
297
      return this;
×
298
    }
299

300
    public Builder spreadsheet(AiStudioAgentSpreadsheetTool spreadsheet) {
UNCOV
301
      this.spreadsheet = spreadsheet;
×
UNCOV
302
      return this;
×
303
    }
304

305
    public Builder longTextMulti(AiStudioAgentLongTextTool longTextMulti) {
UNCOV
306
      this.longTextMulti = longTextMulti;
×
UNCOV
307
      return this;
×
308
    }
309

310
    public Builder basicTextMulti(AiStudioAgentBasicTextTool basicTextMulti) {
UNCOV
311
      this.basicTextMulti = basicTextMulti;
×
UNCOV
312
      return this;
×
313
    }
314

315
    public Builder basicImageMulti(AiStudioAgentBasicTextTool basicImageMulti) {
UNCOV
316
      this.basicImageMulti = basicImageMulti;
×
UNCOV
317
      return this;
×
318
    }
319

320
    public AiStudioAgentAsk build() {
NEW
321
      if (this.type == null) {
×
NEW
322
        this.type =
×
323
            new EnumWrapper<AiStudioAgentAskTypeField>(AiStudioAgentAskTypeField.AI_AGENT_ASK);
324
      }
UNCOV
325
      return new AiStudioAgentAsk(this);
×
326
    }
327
  }
328
}
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