• 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/aistudioagentaskresponse/AiStudioAgentAskResponse.java
1
package com.box.sdkgen.schemas.aistudioagentaskresponse;
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.aistudioagentbasictexttoolresponse.AiStudioAgentBasicTextToolResponse;
7
import com.box.sdkgen.schemas.aistudioagentlongtexttoolresponse.AiStudioAgentLongTextToolResponse;
8
import com.box.sdkgen.schemas.aistudioagentspreadsheettoolresponse.AiStudioAgentSpreadsheetToolResponse;
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 ask questions. */
18
@JsonFilter("nullablePropertyFilter")
19
public class AiStudioAgentAskResponse extends SerializableObject {
20

21
  /** The type of AI agent used to ask questions. */
22
  @JsonDeserialize(
23
      using = AiStudioAgentAskResponseTypeField.AiStudioAgentAskResponseTypeFieldDeserializer.class)
24
  @JsonSerialize(
25
      using = AiStudioAgentAskResponseTypeField.AiStudioAgentAskResponseTypeFieldSerializer.class)
26
  protected EnumWrapper<AiStudioAgentAskResponseTypeField> type;
27

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

32
  /** The description of the AI agent. */
33
  protected final String description;
34

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

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

47
  @JsonProperty("long_text")
48
  protected AiStudioAgentLongTextToolResponse longText;
49

50
  @JsonProperty("basic_text")
51
  protected AiStudioAgentBasicTextToolResponse basicText;
52

53
  @JsonProperty("basic_image")
54
  protected AiStudioAgentBasicTextToolResponse basicImage;
55

56
  protected AiStudioAgentSpreadsheetToolResponse spreadsheet;
57

58
  @JsonProperty("long_text_multi")
59
  protected AiStudioAgentLongTextToolResponse longTextMulti;
60

61
  @JsonProperty("basic_text_multi")
62
  protected AiStudioAgentBasicTextToolResponse basicTextMulti;
63

64
  @JsonProperty("basic_image_multi")
65
  protected AiStudioAgentBasicTextToolResponse basicImageMulti;
66

67
  public AiStudioAgentAskResponse(
68
      @JsonProperty("access_state") String accessState,
69
      @JsonProperty("description") String description) {
70
    super();
×
71
    this.accessState = accessState;
×
72
    this.description = description;
×
73
    this.type =
×
74
        new EnumWrapper<AiStudioAgentAskResponseTypeField>(
75
            AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
76
  }
×
77

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

95
  public EnumWrapper<AiStudioAgentAskResponseTypeField> getType() {
96
    return type;
×
97
  }
98

99
  public String getAccessState() {
100
    return accessState;
×
101
  }
102

103
  public String getDescription() {
104
    return description;
×
105
  }
106

107
  public String getCustomInstructions() {
108
    return customInstructions;
×
109
  }
110

111
  public List<String> getSuggestedQuestions() {
112
    return suggestedQuestions;
×
113
  }
114

115
  public AiStudioAgentLongTextToolResponse getLongText() {
116
    return longText;
×
117
  }
118

119
  public AiStudioAgentBasicTextToolResponse getBasicText() {
120
    return basicText;
×
121
  }
122

123
  public AiStudioAgentBasicTextToolResponse getBasicImage() {
124
    return basicImage;
×
125
  }
126

127
  public AiStudioAgentSpreadsheetToolResponse getSpreadsheet() {
128
    return spreadsheet;
×
129
  }
130

131
  public AiStudioAgentLongTextToolResponse getLongTextMulti() {
132
    return longTextMulti;
×
133
  }
134

135
  public AiStudioAgentBasicTextToolResponse getBasicTextMulti() {
136
    return basicTextMulti;
×
137
  }
138

139
  public AiStudioAgentBasicTextToolResponse getBasicImageMulti() {
140
    return basicImageMulti;
×
141
  }
142

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

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

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

236
  public static class Builder extends NullableFieldTracker {
237

238
    protected EnumWrapper<AiStudioAgentAskResponseTypeField> type;
239

240
    protected final String accessState;
241

242
    protected final String description;
243

244
    protected String customInstructions;
245

246
    protected List<String> suggestedQuestions;
247

248
    protected AiStudioAgentLongTextToolResponse longText;
249

250
    protected AiStudioAgentBasicTextToolResponse basicText;
251

252
    protected AiStudioAgentBasicTextToolResponse basicImage;
253

254
    protected AiStudioAgentSpreadsheetToolResponse spreadsheet;
255

256
    protected AiStudioAgentLongTextToolResponse longTextMulti;
257

258
    protected AiStudioAgentBasicTextToolResponse basicTextMulti;
259

260
    protected AiStudioAgentBasicTextToolResponse basicImageMulti;
261

262
    public Builder(String accessState, String description) {
263
      super();
×
264
      this.accessState = accessState;
×
265
      this.description = description;
×
266
    }
×
267

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

273
    public Builder type(EnumWrapper<AiStudioAgentAskResponseTypeField> type) {
UNCOV
274
      this.type = type;
×
UNCOV
275
      return this;
×
276
    }
277

278
    public Builder customInstructions(String customInstructions) {
UNCOV
279
      this.customInstructions = customInstructions;
×
UNCOV
280
      this.markNullableFieldAsSet("custom_instructions");
×
UNCOV
281
      return this;
×
282
    }
283

284
    public Builder suggestedQuestions(List<String> suggestedQuestions) {
UNCOV
285
      this.suggestedQuestions = suggestedQuestions;
×
UNCOV
286
      return this;
×
287
    }
288

289
    public Builder longText(AiStudioAgentLongTextToolResponse longText) {
UNCOV
290
      this.longText = longText;
×
UNCOV
291
      return this;
×
292
    }
293

294
    public Builder basicText(AiStudioAgentBasicTextToolResponse basicText) {
UNCOV
295
      this.basicText = basicText;
×
UNCOV
296
      return this;
×
297
    }
298

299
    public Builder basicImage(AiStudioAgentBasicTextToolResponse basicImage) {
UNCOV
300
      this.basicImage = basicImage;
×
UNCOV
301
      return this;
×
302
    }
303

304
    public Builder spreadsheet(AiStudioAgentSpreadsheetToolResponse spreadsheet) {
UNCOV
305
      this.spreadsheet = spreadsheet;
×
UNCOV
306
      return this;
×
307
    }
308

309
    public Builder longTextMulti(AiStudioAgentLongTextToolResponse longTextMulti) {
UNCOV
310
      this.longTextMulti = longTextMulti;
×
UNCOV
311
      return this;
×
312
    }
313

314
    public Builder basicTextMulti(AiStudioAgentBasicTextToolResponse basicTextMulti) {
UNCOV
315
      this.basicTextMulti = basicTextMulti;
×
UNCOV
316
      return this;
×
317
    }
318

319
    public Builder basicImageMulti(AiStudioAgentBasicTextToolResponse basicImageMulti) {
UNCOV
320
      this.basicImageMulti = basicImageMulti;
×
UNCOV
321
      return this;
×
322
    }
323

324
    public AiStudioAgentAskResponse build() {
NEW
325
      if (this.type == null) {
×
NEW
326
        this.type =
×
327
            new EnumWrapper<AiStudioAgentAskResponseTypeField>(
328
                AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
329
      }
UNCOV
330
      return new AiStudioAgentAskResponse(this);
×
331
    }
332
  }
333
}
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