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

box / box-java-sdk-gen / #308

27 Jun 2025 07:45AM UTC coverage: 35.641% (-0.04%) from 35.681%
#308

push

github

web-flow
feat: Add AI spreadsheet processor (box/box-openapi#533) (#349)

2 of 34 new or added lines in 2 files covered. (5.88%)

9 existing lines in 2 files now uncovered.

16941 of 47533 relevant lines covered (35.64%)

0.36 hits per line

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

5.08
/src/main/java/com/box/sdkgen/schemas/aiagentask/AiAgentAsk.java
1
package com.box.sdkgen.schemas.aiagentask;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.aiagentbasictexttool.AiAgentBasicTextTool;
6
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextTool;
7
import com.box.sdkgen.schemas.aiagentspreadsheettool.AiAgentSpreadsheetTool;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class AiAgentAsk extends SerializableObject {
17

18
  @JsonDeserialize(using = AiAgentAskTypeField.AiAgentAskTypeFieldDeserializer.class)
19
  @JsonSerialize(using = AiAgentAskTypeField.AiAgentAskTypeFieldSerializer.class)
20
  protected EnumWrapper<AiAgentAskTypeField> type;
21

22
  @JsonProperty("long_text")
23
  protected AiAgentLongTextTool longText;
24

25
  @JsonProperty("basic_text")
26
  protected AiAgentBasicTextTool basicText;
27

28
  protected AiAgentSpreadsheetTool spreadsheet;
29

30
  @JsonProperty("long_text_multi")
31
  protected AiAgentLongTextTool longTextMulti;
32

33
  @JsonProperty("basic_text_multi")
34
  protected AiAgentBasicTextTool basicTextMulti;
35

36
  @JsonProperty("basic_image")
37
  protected AiAgentBasicTextTool basicImage;
38

39
  @JsonProperty("basic_image_multi")
40
  protected AiAgentBasicTextTool basicImageMulti;
41

42
  public AiAgentAsk() {
43
    super();
1✔
44
    this.type = new EnumWrapper<AiAgentAskTypeField>(AiAgentAskTypeField.AI_AGENT_ASK);
1✔
45
  }
1✔
46

47
  protected AiAgentAsk(Builder builder) {
48
    super();
×
49
    this.type = builder.type;
×
50
    this.longText = builder.longText;
×
51
    this.basicText = builder.basicText;
×
NEW
52
    this.spreadsheet = builder.spreadsheet;
×
53
    this.longTextMulti = builder.longTextMulti;
×
54
    this.basicTextMulti = builder.basicTextMulti;
×
55
    this.basicImage = builder.basicImage;
×
56
    this.basicImageMulti = builder.basicImageMulti;
×
57
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
58
  }
×
59

60
  public EnumWrapper<AiAgentAskTypeField> getType() {
61
    return type;
×
62
  }
63

64
  public AiAgentLongTextTool getLongText() {
65
    return longText;
×
66
  }
67

68
  public AiAgentBasicTextTool getBasicText() {
69
    return basicText;
×
70
  }
71

72
  public AiAgentSpreadsheetTool getSpreadsheet() {
NEW
73
    return spreadsheet;
×
74
  }
75

76
  public AiAgentLongTextTool getLongTextMulti() {
77
    return longTextMulti;
×
78
  }
79

80
  public AiAgentBasicTextTool getBasicTextMulti() {
81
    return basicTextMulti;
×
82
  }
83

84
  public AiAgentBasicTextTool getBasicImage() {
85
    return basicImage;
×
86
  }
87

88
  public AiAgentBasicTextTool getBasicImageMulti() {
89
    return basicImageMulti;
×
90
  }
91

92
  @Override
93
  public boolean equals(Object o) {
94
    if (this == o) {
×
95
      return true;
×
96
    }
97
    if (o == null || getClass() != o.getClass()) {
×
98
      return false;
×
99
    }
100
    AiAgentAsk casted = (AiAgentAsk) o;
×
101
    return Objects.equals(type, casted.type)
×
102
        && Objects.equals(longText, casted.longText)
×
103
        && Objects.equals(basicText, casted.basicText)
×
NEW
104
        && Objects.equals(spreadsheet, casted.spreadsheet)
×
105
        && Objects.equals(longTextMulti, casted.longTextMulti)
×
106
        && Objects.equals(basicTextMulti, casted.basicTextMulti)
×
107
        && Objects.equals(basicImage, casted.basicImage)
×
108
        && Objects.equals(basicImageMulti, casted.basicImageMulti);
×
109
  }
110

111
  @Override
112
  public int hashCode() {
113
    return Objects.hash(
×
114
        type,
115
        longText,
116
        basicText,
117
        spreadsheet,
118
        longTextMulti,
119
        basicTextMulti,
120
        basicImage,
121
        basicImageMulti);
122
  }
123

124
  @Override
125
  public String toString() {
126
    return "AiAgentAsk{"
×
127
        + "type='"
128
        + type
129
        + '\''
130
        + ", "
131
        + "longText='"
132
        + longText
133
        + '\''
134
        + ", "
135
        + "basicText='"
136
        + basicText
137
        + '\''
138
        + ", "
139
        + "spreadsheet='"
140
        + spreadsheet
141
        + '\''
142
        + ", "
143
        + "longTextMulti='"
144
        + longTextMulti
145
        + '\''
146
        + ", "
147
        + "basicTextMulti='"
148
        + basicTextMulti
149
        + '\''
150
        + ", "
151
        + "basicImage='"
152
        + basicImage
153
        + '\''
154
        + ", "
155
        + "basicImageMulti='"
156
        + basicImageMulti
157
        + '\''
158
        + "}";
159
  }
160

161
  public static class Builder extends NullableFieldTracker {
162

163
    protected EnumWrapper<AiAgentAskTypeField> type;
164

165
    protected AiAgentLongTextTool longText;
166

167
    protected AiAgentBasicTextTool basicText;
168

169
    protected AiAgentSpreadsheetTool spreadsheet;
170

171
    protected AiAgentLongTextTool longTextMulti;
172

173
    protected AiAgentBasicTextTool basicTextMulti;
174

175
    protected AiAgentBasicTextTool basicImage;
176

177
    protected AiAgentBasicTextTool basicImageMulti;
178

179
    public Builder() {
180
      super();
×
181
      this.type = new EnumWrapper<AiAgentAskTypeField>(AiAgentAskTypeField.AI_AGENT_ASK);
×
182
    }
×
183

184
    public Builder type(AiAgentAskTypeField type) {
185
      this.type = new EnumWrapper<AiAgentAskTypeField>(type);
×
186
      return this;
×
187
    }
188

189
    public Builder type(EnumWrapper<AiAgentAskTypeField> type) {
190
      this.type = type;
×
191
      return this;
×
192
    }
193

194
    public Builder longText(AiAgentLongTextTool longText) {
195
      this.longText = longText;
×
196
      return this;
×
197
    }
198

199
    public Builder basicText(AiAgentBasicTextTool basicText) {
200
      this.basicText = basicText;
×
201
      return this;
×
202
    }
203

204
    public Builder spreadsheet(AiAgentSpreadsheetTool spreadsheet) {
NEW
205
      this.spreadsheet = spreadsheet;
×
NEW
206
      return this;
×
207
    }
208

209
    public Builder longTextMulti(AiAgentLongTextTool longTextMulti) {
210
      this.longTextMulti = longTextMulti;
×
211
      return this;
×
212
    }
213

214
    public Builder basicTextMulti(AiAgentBasicTextTool basicTextMulti) {
215
      this.basicTextMulti = basicTextMulti;
×
216
      return this;
×
217
    }
218

219
    public Builder basicImage(AiAgentBasicTextTool basicImage) {
220
      this.basicImage = basicImage;
×
221
      return this;
×
222
    }
223

224
    public Builder basicImageMulti(AiAgentBasicTextTool basicImageMulti) {
225
      this.basicImageMulti = basicImageMulti;
×
226
      return this;
×
227
    }
228

229
    public AiAgentAsk build() {
230
      return new AiAgentAsk(this);
×
231
    }
232
  }
233
}
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