• 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

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

20
  @JsonDeserialize(using = AiStudioAgentAskTypeField.AiStudioAgentAskTypeFieldDeserializer.class)
21
  @JsonSerialize(using = AiStudioAgentAskTypeField.AiStudioAgentAskTypeFieldSerializer.class)
22
  protected EnumWrapper<AiStudioAgentAskTypeField> type;
23

24
  @JsonProperty("access_state")
25
  protected final String accessState;
26

27
  protected final String description;
28

29
  @JsonProperty("custom_instructions")
30
  @Nullable
31
  protected String customInstructions;
32

33
  @JsonProperty("suggested_questions")
34
  protected List<String> suggestedQuestions;
35

36
  @JsonProperty("long_text")
37
  protected AiStudioAgentLongTextTool longText;
38

39
  @JsonProperty("basic_text")
40
  protected AiStudioAgentBasicTextTool basicText;
41

42
  @JsonProperty("basic_image")
43
  protected AiStudioAgentBasicTextTool basicImage;
44

45
  protected AiStudioAgentSpreadsheetTool spreadsheet;
46

47
  @JsonProperty("long_text_multi")
48
  protected AiStudioAgentLongTextTool longTextMulti;
49

50
  @JsonProperty("basic_text_multi")
51
  protected AiStudioAgentBasicTextTool basicTextMulti;
52

53
  @JsonProperty("basic_image_multi")
54
  protected AiStudioAgentBasicTextTool basicImageMulti;
55

56
  public AiStudioAgentAsk(
57
      @JsonProperty("access_state") String accessState,
58
      @JsonProperty("description") String description) {
59
    super();
1✔
60
    this.accessState = accessState;
1✔
61
    this.description = description;
1✔
62
    this.type = new EnumWrapper<AiStudioAgentAskTypeField>(AiStudioAgentAskTypeField.AI_AGENT_ASK);
1✔
63
  }
1✔
64

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

82
  public EnumWrapper<AiStudioAgentAskTypeField> getType() {
83
    return type;
1✔
84
  }
85

86
  public String getAccessState() {
87
    return accessState;
1✔
88
  }
89

90
  public String getDescription() {
91
    return description;
1✔
92
  }
93

94
  public String getCustomInstructions() {
95
    return customInstructions;
1✔
96
  }
97

98
  public List<String> getSuggestedQuestions() {
99
    return suggestedQuestions;
1✔
100
  }
101

102
  public AiStudioAgentLongTextTool getLongText() {
103
    return longText;
1✔
104
  }
105

106
  public AiStudioAgentBasicTextTool getBasicText() {
107
    return basicText;
1✔
108
  }
109

110
  public AiStudioAgentBasicTextTool getBasicImage() {
111
    return basicImage;
1✔
112
  }
113

114
  public AiStudioAgentSpreadsheetTool getSpreadsheet() {
115
    return spreadsheet;
1✔
116
  }
117

118
  public AiStudioAgentLongTextTool getLongTextMulti() {
119
    return longTextMulti;
1✔
120
  }
121

122
  public AiStudioAgentBasicTextTool getBasicTextMulti() {
123
    return basicTextMulti;
1✔
124
  }
125

126
  public AiStudioAgentBasicTextTool getBasicImageMulti() {
127
    return basicImageMulti;
1✔
128
  }
129

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

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

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

223
  public static class Builder extends NullableFieldTracker {
224

225
    protected EnumWrapper<AiStudioAgentAskTypeField> type;
226

227
    protected final String accessState;
228

229
    protected final String description;
230

231
    protected String customInstructions;
232

233
    protected List<String> suggestedQuestions;
234

235
    protected AiStudioAgentLongTextTool longText;
236

237
    protected AiStudioAgentBasicTextTool basicText;
238

239
    protected AiStudioAgentBasicTextTool basicImage;
240

241
    protected AiStudioAgentSpreadsheetTool spreadsheet;
242

243
    protected AiStudioAgentLongTextTool longTextMulti;
244

245
    protected AiStudioAgentBasicTextTool basicTextMulti;
246

247
    protected AiStudioAgentBasicTextTool basicImageMulti;
248

249
    public Builder(String accessState, String description) {
250
      super();
×
251
      this.accessState = accessState;
×
252
      this.description = description;
×
253
      this.type =
×
254
          new EnumWrapper<AiStudioAgentAskTypeField>(AiStudioAgentAskTypeField.AI_AGENT_ASK);
255
    }
×
256

257
    public Builder type(AiStudioAgentAskTypeField type) {
258
      this.type = new EnumWrapper<AiStudioAgentAskTypeField>(type);
×
259
      return this;
×
260
    }
261

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

267
    public Builder customInstructions(String customInstructions) {
268
      this.customInstructions = customInstructions;
×
269
      this.markNullableFieldAsSet("custom_instructions");
×
270
      return this;
×
271
    }
272

273
    public Builder suggestedQuestions(List<String> suggestedQuestions) {
274
      this.suggestedQuestions = suggestedQuestions;
×
275
      return this;
×
276
    }
277

278
    public Builder longText(AiStudioAgentLongTextTool longText) {
279
      this.longText = longText;
×
280
      return this;
×
281
    }
282

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

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

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

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

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

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

313
    public AiStudioAgentAsk build() {
314
      return new AiStudioAgentAsk(this);
×
315
    }
316
  }
317
}
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