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

box / box-java-sdk-gen / #141

28 May 2025 09:09AM UTC coverage: 35.551% (+0.2%) from 35.312%
#141

Pull #317

github

web-flow
Merge a88c4bc17 into 7ea98521c
Pull Request #317: chore: Update .codegen.json with commit hash of codegen and openapi spec

38 of 77 new or added lines in 15 files covered. (49.35%)

6 existing lines in 6 files now uncovered.

15595 of 43866 relevant lines covered (35.55%)

0.36 hits per line

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

5.88
/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;
×
NEW
48
    this.basicImage = builder.basicImage;
×
NEW
49
    this.basicImageMulti = builder.basicImageMulti;
×
UNCOV
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() {
NEW
73
    return basicImage;
×
74
  }
75

76
  public AiAgentBasicTextTool getBasicImageMulti() {
NEW
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)
×
NEW
93
        && Objects.equals(basicTextMulti, casted.basicTextMulti)
×
NEW
94
        && Objects.equals(basicImage, casted.basicImage)
×
NEW
95
        && Objects.equals(basicImageMulti, casted.basicImageMulti);
×
96
  }
97

98
  @Override
99
  public int hashCode() {
NEW
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 type(AiAgentAskTypeField type) {
154
      this.type = new EnumWrapper<AiAgentAskTypeField>(type);
×
155
      return this;
×
156
    }
157

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

163
    public AiAgentAskBuilder longText(AiAgentLongTextTool longText) {
164
      this.longText = longText;
×
165
      return this;
×
166
    }
167

168
    public AiAgentAskBuilder basicText(AiAgentBasicTextTool basicText) {
169
      this.basicText = basicText;
×
170
      return this;
×
171
    }
172

173
    public AiAgentAskBuilder longTextMulti(AiAgentLongTextTool longTextMulti) {
174
      this.longTextMulti = longTextMulti;
×
175
      return this;
×
176
    }
177

178
    public AiAgentAskBuilder basicTextMulti(AiAgentBasicTextTool basicTextMulti) {
179
      this.basicTextMulti = basicTextMulti;
×
180
      return this;
×
181
    }
182

183
    public AiAgentAskBuilder basicImage(AiAgentBasicTextTool basicImage) {
NEW
184
      this.basicImage = basicImage;
×
NEW
185
      return this;
×
186
    }
187

188
    public AiAgentAskBuilder basicImageMulti(AiAgentBasicTextTool basicImageMulti) {
NEW
189
      this.basicImageMulti = basicImageMulti;
×
NEW
190
      return this;
×
191
    }
192

193
    public AiAgentAsk build() {
194
      return new AiAgentAsk(this);
×
195
    }
196
  }
197
}
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