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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 hits per line

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

8.75
/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();
1✔
71
    this.accessState = accessState;
1✔
72
    this.description = description;
1✔
73
    this.type =
1✔
74
        new EnumWrapper<AiStudioAgentAskResponseTypeField>(
75
            AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
76
  }
1✔
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;
1✔
101
  }
102

103
  public String getDescription() {
104
    return description;
1✔
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
      this.type =
×
267
          new EnumWrapper<AiStudioAgentAskResponseTypeField>(
268
              AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
269
    }
×
270

271
    public Builder type(AiStudioAgentAskResponseTypeField type) {
272
      this.type = new EnumWrapper<AiStudioAgentAskResponseTypeField>(type);
×
273
      return this;
×
274
    }
275

276
    public Builder type(EnumWrapper<AiStudioAgentAskResponseTypeField> type) {
277
      this.type = type;
×
278
      return this;
×
279
    }
280

281
    public Builder customInstructions(String customInstructions) {
282
      this.customInstructions = customInstructions;
×
283
      this.markNullableFieldAsSet("custom_instructions");
×
284
      return this;
×
285
    }
286

287
    public Builder suggestedQuestions(List<String> suggestedQuestions) {
288
      this.suggestedQuestions = suggestedQuestions;
×
289
      return this;
×
290
    }
291

292
    public Builder longText(AiStudioAgentLongTextToolResponse longText) {
293
      this.longText = longText;
×
294
      return this;
×
295
    }
296

297
    public Builder basicText(AiStudioAgentBasicTextToolResponse basicText) {
298
      this.basicText = basicText;
×
299
      return this;
×
300
    }
301

302
    public Builder basicImage(AiStudioAgentBasicTextToolResponse basicImage) {
303
      this.basicImage = basicImage;
×
304
      return this;
×
305
    }
306

307
    public Builder spreadsheet(AiStudioAgentSpreadsheetToolResponse spreadsheet) {
308
      this.spreadsheet = spreadsheet;
×
309
      return this;
×
310
    }
311

312
    public Builder longTextMulti(AiStudioAgentLongTextToolResponse longTextMulti) {
313
      this.longTextMulti = longTextMulti;
×
314
      return this;
×
315
    }
316

317
    public Builder basicTextMulti(AiStudioAgentBasicTextToolResponse basicTextMulti) {
318
      this.basicTextMulti = basicTextMulti;
×
319
      return this;
×
320
    }
321

322
    public Builder basicImageMulti(AiStudioAgentBasicTextToolResponse basicImageMulti) {
323
      this.basicImageMulti = basicImageMulti;
×
324
      return this;
×
325
    }
326

327
    public AiStudioAgentAskResponse build() {
328
      return new AiStudioAgentAskResponse(this);
×
329
    }
330
  }
331
}
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