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

box / box-java-sdk-gen / #349

11 Jul 2025 02:24PM UTC coverage: 35.58% (-0.06%) from 35.639%
#349

push

github

web-flow
test: Improve names in transfer integration test (box/box-codegen#759) (#358)

16957 of 47659 relevant lines covered (35.58%)

0.36 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
@JsonFilter("nullablePropertyFilter")
18
public class AiStudioAgentAskResponse extends SerializableObject {
19

20
  @JsonDeserialize(
21
      using = AiStudioAgentAskResponseTypeField.AiStudioAgentAskResponseTypeFieldDeserializer.class)
22
  @JsonSerialize(
23
      using = AiStudioAgentAskResponseTypeField.AiStudioAgentAskResponseTypeFieldSerializer.class)
24
  protected EnumWrapper<AiStudioAgentAskResponseTypeField> type;
25

26
  @JsonProperty("access_state")
27
  protected final String accessState;
28

29
  protected final String description;
30

31
  @JsonProperty("custom_instructions")
32
  @Nullable
33
  protected String customInstructions;
34

35
  @JsonProperty("suggested_questions")
36
  protected List<String> suggestedQuestions;
37

38
  @JsonProperty("long_text")
39
  protected AiStudioAgentLongTextToolResponse longText;
40

41
  @JsonProperty("basic_text")
42
  protected AiStudioAgentBasicTextToolResponse basicText;
43

44
  @JsonProperty("basic_image")
45
  protected AiStudioAgentBasicTextToolResponse basicImage;
46

47
  protected AiStudioAgentSpreadsheetToolResponse spreadsheet;
48

49
  @JsonProperty("long_text_multi")
50
  protected AiStudioAgentLongTextToolResponse longTextMulti;
51

52
  @JsonProperty("basic_text_multi")
53
  protected AiStudioAgentBasicTextToolResponse basicTextMulti;
54

55
  @JsonProperty("basic_image_multi")
56
  protected AiStudioAgentBasicTextToolResponse basicImageMulti;
57

58
  public AiStudioAgentAskResponse(
59
      @JsonProperty("access_state") String accessState,
60
      @JsonProperty("description") String description) {
61
    super();
1✔
62
    this.accessState = accessState;
1✔
63
    this.description = description;
1✔
64
    this.type =
1✔
65
        new EnumWrapper<AiStudioAgentAskResponseTypeField>(
66
            AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
67
  }
1✔
68

69
  protected AiStudioAgentAskResponse(Builder builder) {
70
    super();
×
71
    this.type = builder.type;
×
72
    this.accessState = builder.accessState;
×
73
    this.description = builder.description;
×
74
    this.customInstructions = builder.customInstructions;
×
75
    this.suggestedQuestions = builder.suggestedQuestions;
×
76
    this.longText = builder.longText;
×
77
    this.basicText = builder.basicText;
×
78
    this.basicImage = builder.basicImage;
×
79
    this.spreadsheet = builder.spreadsheet;
×
80
    this.longTextMulti = builder.longTextMulti;
×
81
    this.basicTextMulti = builder.basicTextMulti;
×
82
    this.basicImageMulti = builder.basicImageMulti;
×
83
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
84
  }
×
85

86
  public EnumWrapper<AiStudioAgentAskResponseTypeField> getType() {
87
    return type;
×
88
  }
89

90
  public String getAccessState() {
91
    return accessState;
1✔
92
  }
93

94
  public String getDescription() {
95
    return description;
1✔
96
  }
97

98
  public String getCustomInstructions() {
99
    return customInstructions;
×
100
  }
101

102
  public List<String> getSuggestedQuestions() {
103
    return suggestedQuestions;
×
104
  }
105

106
  public AiStudioAgentLongTextToolResponse getLongText() {
107
    return longText;
×
108
  }
109

110
  public AiStudioAgentBasicTextToolResponse getBasicText() {
111
    return basicText;
×
112
  }
113

114
  public AiStudioAgentBasicTextToolResponse getBasicImage() {
115
    return basicImage;
×
116
  }
117

118
  public AiStudioAgentSpreadsheetToolResponse getSpreadsheet() {
119
    return spreadsheet;
×
120
  }
121

122
  public AiStudioAgentLongTextToolResponse getLongTextMulti() {
123
    return longTextMulti;
×
124
  }
125

126
  public AiStudioAgentBasicTextToolResponse getBasicTextMulti() {
127
    return basicTextMulti;
×
128
  }
129

130
  public AiStudioAgentBasicTextToolResponse getBasicImageMulti() {
131
    return basicImageMulti;
×
132
  }
133

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

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

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

227
  public static class Builder extends NullableFieldTracker {
228

229
    protected EnumWrapper<AiStudioAgentAskResponseTypeField> type;
230

231
    protected final String accessState;
232

233
    protected final String description;
234

235
    protected String customInstructions;
236

237
    protected List<String> suggestedQuestions;
238

239
    protected AiStudioAgentLongTextToolResponse longText;
240

241
    protected AiStudioAgentBasicTextToolResponse basicText;
242

243
    protected AiStudioAgentBasicTextToolResponse basicImage;
244

245
    protected AiStudioAgentSpreadsheetToolResponse spreadsheet;
246

247
    protected AiStudioAgentLongTextToolResponse longTextMulti;
248

249
    protected AiStudioAgentBasicTextToolResponse basicTextMulti;
250

251
    protected AiStudioAgentBasicTextToolResponse basicImageMulti;
252

253
    public Builder(String accessState, String description) {
254
      super();
×
255
      this.accessState = accessState;
×
256
      this.description = description;
×
257
      this.type =
×
258
          new EnumWrapper<AiStudioAgentAskResponseTypeField>(
259
              AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
260
    }
×
261

262
    public Builder type(AiStudioAgentAskResponseTypeField type) {
263
      this.type = new EnumWrapper<AiStudioAgentAskResponseTypeField>(type);
×
264
      return this;
×
265
    }
266

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

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

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

283
    public Builder longText(AiStudioAgentLongTextToolResponse longText) {
284
      this.longText = longText;
×
285
      return this;
×
286
    }
287

288
    public Builder basicText(AiStudioAgentBasicTextToolResponse basicText) {
289
      this.basicText = basicText;
×
290
      return this;
×
291
    }
292

293
    public Builder basicImage(AiStudioAgentBasicTextToolResponse basicImage) {
294
      this.basicImage = basicImage;
×
295
      return this;
×
296
    }
297

298
    public Builder spreadsheet(AiStudioAgentSpreadsheetToolResponse spreadsheet) {
299
      this.spreadsheet = spreadsheet;
×
300
      return this;
×
301
    }
302

303
    public Builder longTextMulti(AiStudioAgentLongTextToolResponse longTextMulti) {
304
      this.longTextMulti = longTextMulti;
×
305
      return this;
×
306
    }
307

308
    public Builder basicTextMulti(AiStudioAgentBasicTextToolResponse basicTextMulti) {
309
      this.basicTextMulti = basicTextMulti;
×
310
      return this;
×
311
    }
312

313
    public Builder basicImageMulti(AiStudioAgentBasicTextToolResponse basicImageMulti) {
314
      this.basicImageMulti = basicImageMulti;
×
315
      return this;
×
316
    }
317

318
    public AiStudioAgentAskResponse build() {
319
      return new AiStudioAgentAskResponse(this);
×
320
    }
321
  }
322
}
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