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

box / box-java-sdk-gen / #188

04 Jun 2025 10:42AM UTC coverage: 34.762% (-0.9%) from 35.631%
#188

Pull #327

github

web-flow
Merge a4b5eccbc into 28f2ec7f8
Pull Request #327: chore: Update .codegen.json with commit hash of codegen and openapi spec

15770 of 45365 relevant lines covered (34.76%)

0.35 hits per line

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

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

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

12
public class AiAgentAsk extends SerializableObject {
13

14
  @JsonDeserialize(using = AiAgentAskTypeField.AiAgentAskTypeFieldDeserializer.class)
15
  @JsonSerialize(using = AiAgentAskTypeField.AiAgentAskTypeFieldSerializer.class)
16
  protected EnumWrapper<AiAgentAskTypeField> type;
17

18
  @JsonProperty("long_text")
19
  protected AiAgentLongTextTool longText;
20

21
  @JsonProperty("basic_text")
22
  protected AiAgentBasicTextTool basicText;
23

24
  @JsonProperty("long_text_multi")
25
  protected AiAgentLongTextTool longTextMulti;
26

27
  @JsonProperty("basic_text_multi")
28
  protected AiAgentBasicTextTool basicTextMulti;
29

30
  @JsonProperty("basic_image")
31
  protected AiAgentBasicTextTool basicImage;
32

33
  @JsonProperty("basic_image_multi")
34
  protected AiAgentBasicTextTool basicImageMulti;
35

36
  public AiAgentAsk() {
37
    super();
1✔
38
    this.type = new EnumWrapper<AiAgentAskTypeField>(AiAgentAskTypeField.AI_AGENT_ASK);
1✔
39
  }
1✔
40

41
  protected AiAgentAsk(AiAgentAskBuilder builder) {
42
    super();
×
43
    this.type = builder.type;
×
44
    this.longText = builder.longText;
×
45
    this.basicText = builder.basicText;
×
46
    this.longTextMulti = builder.longTextMulti;
×
47
    this.basicTextMulti = builder.basicTextMulti;
×
48
    this.basicImage = builder.basicImage;
×
49
    this.basicImageMulti = builder.basicImageMulti;
×
50
  }
×
51

52
  public EnumWrapper<AiAgentAskTypeField> getType() {
53
    return type;
×
54
  }
55

56
  public AiAgentLongTextTool getLongText() {
57
    return longText;
×
58
  }
59

60
  public AiAgentBasicTextTool getBasicText() {
61
    return basicText;
×
62
  }
63

64
  public AiAgentLongTextTool getLongTextMulti() {
65
    return longTextMulti;
×
66
  }
67

68
  public AiAgentBasicTextTool getBasicTextMulti() {
69
    return basicTextMulti;
×
70
  }
71

72
  public AiAgentBasicTextTool getBasicImage() {
73
    return basicImage;
×
74
  }
75

76
  public AiAgentBasicTextTool getBasicImageMulti() {
77
    return basicImageMulti;
×
78
  }
79

80
  @Override
81
  public boolean equals(Object o) {
82
    if (this == o) {
×
83
      return true;
×
84
    }
85
    if (o == null || getClass() != o.getClass()) {
×
86
      return false;
×
87
    }
88
    AiAgentAsk casted = (AiAgentAsk) o;
×
89
    return Objects.equals(type, casted.type)
×
90
        && Objects.equals(longText, casted.longText)
×
91
        && Objects.equals(basicText, casted.basicText)
×
92
        && Objects.equals(longTextMulti, casted.longTextMulti)
×
93
        && Objects.equals(basicTextMulti, casted.basicTextMulti)
×
94
        && Objects.equals(basicImage, casted.basicImage)
×
95
        && Objects.equals(basicImageMulti, casted.basicImageMulti);
×
96
  }
97

98
  @Override
99
  public int hashCode() {
100
    return Objects.hash(
×
101
        type, longText, basicText, longTextMulti, basicTextMulti, basicImage, basicImageMulti);
102
  }
103

104
  @Override
105
  public String toString() {
106
    return "AiAgentAsk{"
×
107
        + "type='"
108
        + type
109
        + '\''
110
        + ", "
111
        + "longText='"
112
        + longText
113
        + '\''
114
        + ", "
115
        + "basicText='"
116
        + basicText
117
        + '\''
118
        + ", "
119
        + "longTextMulti='"
120
        + longTextMulti
121
        + '\''
122
        + ", "
123
        + "basicTextMulti='"
124
        + basicTextMulti
125
        + '\''
126
        + ", "
127
        + "basicImage='"
128
        + basicImage
129
        + '\''
130
        + ", "
131
        + "basicImageMulti='"
132
        + basicImageMulti
133
        + '\''
134
        + "}";
135
  }
136

137
  public static class AiAgentAskBuilder {
138

139
    protected EnumWrapper<AiAgentAskTypeField> type;
140

141
    protected AiAgentLongTextTool longText;
142

143
    protected AiAgentBasicTextTool basicText;
144

145
    protected AiAgentLongTextTool longTextMulti;
146

147
    protected AiAgentBasicTextTool basicTextMulti;
148

149
    protected AiAgentBasicTextTool basicImage;
150

151
    protected AiAgentBasicTextTool basicImageMulti;
152

153
    public AiAgentAskBuilder() {
×
154
      this.type = new EnumWrapper<AiAgentAskTypeField>(AiAgentAskTypeField.AI_AGENT_ASK);
×
155
    }
×
156

157
    public AiAgentAskBuilder type(AiAgentAskTypeField type) {
158
      this.type = new EnumWrapper<AiAgentAskTypeField>(type);
×
159
      return this;
×
160
    }
161

162
    public AiAgentAskBuilder type(EnumWrapper<AiAgentAskTypeField> type) {
163
      this.type = type;
×
164
      return this;
×
165
    }
166

167
    public AiAgentAskBuilder longText(AiAgentLongTextTool longText) {
168
      this.longText = longText;
×
169
      return this;
×
170
    }
171

172
    public AiAgentAskBuilder basicText(AiAgentBasicTextTool basicText) {
173
      this.basicText = basicText;
×
174
      return this;
×
175
    }
176

177
    public AiAgentAskBuilder longTextMulti(AiAgentLongTextTool longTextMulti) {
178
      this.longTextMulti = longTextMulti;
×
179
      return this;
×
180
    }
181

182
    public AiAgentAskBuilder basicTextMulti(AiAgentBasicTextTool basicTextMulti) {
183
      this.basicTextMulti = basicTextMulti;
×
184
      return this;
×
185
    }
186

187
    public AiAgentAskBuilder basicImage(AiAgentBasicTextTool basicImage) {
188
      this.basicImage = basicImage;
×
189
      return this;
×
190
    }
191

192
    public AiAgentAskBuilder basicImageMulti(AiAgentBasicTextTool basicImageMulti) {
193
      this.basicImageMulti = basicImageMulti;
×
194
      return this;
×
195
    }
196

197
    public AiAgentAsk build() {
198
      return new AiAgentAsk(this);
×
199
    }
200
  }
201
}
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