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

box / box-java-sdk-gen / #301

26 Jun 2025 03:33PM UTC coverage: 35.681% (-0.04%) from 35.723%
#301

push

github

web-flow
feat: Add webhook validation(box/box-codegen#745) (#347)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

68 of 82 new or added lines in 2 files covered. (82.93%)

11818 existing lines in 631 files now uncovered.

16948 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

5.56
/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.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.Objects;
13

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

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

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

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

27
  @JsonProperty("long_text_multi")
28
  protected AiAgentLongTextTool longTextMulti;
29

30
  @JsonProperty("basic_text_multi")
31
  protected AiAgentBasicTextTool basicTextMulti;
32

33
  @JsonProperty("basic_image")
34
  protected AiAgentBasicTextTool basicImage;
35

36
  @JsonProperty("basic_image_multi")
37
  protected AiAgentBasicTextTool basicImageMulti;
38

39
  public AiAgentAsk() {
40
    super();
1✔
41
    this.type = new EnumWrapper<AiAgentAskTypeField>(AiAgentAskTypeField.AI_AGENT_ASK);
1✔
42
  }
1✔
43

44
  protected AiAgentAsk(Builder builder) {
45
    super();
×
46
    this.type = builder.type;
×
47
    this.longText = builder.longText;
×
48
    this.basicText = builder.basicText;
×
49
    this.longTextMulti = builder.longTextMulti;
×
50
    this.basicTextMulti = builder.basicTextMulti;
×
UNCOV
51
    this.basicImage = builder.basicImage;
×
UNCOV
52
    this.basicImageMulti = builder.basicImageMulti;
×
53
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
54
  }
×
55

56
  public EnumWrapper<AiAgentAskTypeField> getType() {
57
    return type;
×
58
  }
59

60
  public AiAgentLongTextTool getLongText() {
61
    return longText;
×
62
  }
63

64
  public AiAgentBasicTextTool getBasicText() {
65
    return basicText;
×
66
  }
67

68
  public AiAgentLongTextTool getLongTextMulti() {
69
    return longTextMulti;
×
70
  }
71

72
  public AiAgentBasicTextTool getBasicTextMulti() {
73
    return basicTextMulti;
×
74
  }
75

76
  public AiAgentBasicTextTool getBasicImage() {
77
    return basicImage;
×
78
  }
79

80
  public AiAgentBasicTextTool getBasicImageMulti() {
UNCOV
81
    return basicImageMulti;
×
82
  }
83

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

102
  @Override
103
  public int hashCode() {
UNCOV
104
    return Objects.hash(
×
105
        type, longText, basicText, longTextMulti, basicTextMulti, basicImage, basicImageMulti);
106
  }
107

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

141
  public static class Builder extends NullableFieldTracker {
142

143
    protected EnumWrapper<AiAgentAskTypeField> type;
144

145
    protected AiAgentLongTextTool longText;
146

147
    protected AiAgentBasicTextTool basicText;
148

149
    protected AiAgentLongTextTool longTextMulti;
150

151
    protected AiAgentBasicTextTool basicTextMulti;
152

153
    protected AiAgentBasicTextTool basicImage;
154

155
    protected AiAgentBasicTextTool basicImageMulti;
156

157
    public Builder() {
158
      super();
×
159
      this.type = new EnumWrapper<AiAgentAskTypeField>(AiAgentAskTypeField.AI_AGENT_ASK);
×
UNCOV
160
    }
×
161

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

167
    public Builder type(EnumWrapper<AiAgentAskTypeField> type) {
168
      this.type = type;
×
169
      return this;
×
170
    }
171

172
    public Builder longText(AiAgentLongTextTool longText) {
173
      this.longText = longText;
×
174
      return this;
×
175
    }
176

177
    public Builder basicText(AiAgentBasicTextTool basicText) {
178
      this.basicText = basicText;
×
179
      return this;
×
180
    }
181

182
    public Builder longTextMulti(AiAgentLongTextTool longTextMulti) {
183
      this.longTextMulti = longTextMulti;
×
184
      return this;
×
185
    }
186

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

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

197
    public Builder basicImageMulti(AiAgentBasicTextTool basicImageMulti) {
198
      this.basicImageMulti = basicImageMulti;
×
UNCOV
199
      return this;
×
200
    }
201

202
    public AiAgentAsk build() {
UNCOV
203
      return new AiAgentAsk(this);
×
204
    }
205
  }
206
}
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