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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

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

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

21.67
/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.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 AiStudioAgentAsk extends SerializableObject {
17

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

22
  @JsonProperty("access_state")
23
  protected final String accessState;
24

25
  protected final String description;
26

27
  @JsonProperty("custom_instructions")
28
  @Nullable
29
  protected String customInstructions;
30

31
  @JsonProperty("long_text")
32
  protected AiStudioAgentLongTextTool longText;
33

34
  @JsonProperty("basic_text")
35
  protected AiStudioAgentBasicTextTool basicText;
36

37
  @JsonProperty("long_text_multi")
38
  protected AiStudioAgentLongTextTool longTextMulti;
39

40
  @JsonProperty("basic_text_multi")
41
  protected AiStudioAgentBasicTextTool basicTextMulti;
42

43
  public AiStudioAgentAsk(
44
      @JsonProperty("access_state") String accessState,
45
      @JsonProperty("description") String description) {
46
    super();
1✔
47
    this.accessState = accessState;
1✔
48
    this.description = description;
1✔
49
    this.type = new EnumWrapper<AiStudioAgentAskTypeField>(AiStudioAgentAskTypeField.AI_AGENT_ASK);
1✔
50
  }
1✔
51

52
  protected AiStudioAgentAsk(Builder builder) {
53
    super();
×
54
    this.type = builder.type;
×
55
    this.accessState = builder.accessState;
×
56
    this.description = builder.description;
×
57
    this.customInstructions = builder.customInstructions;
×
UNCOV
58
    this.longText = builder.longText;
×
UNCOV
59
    this.basicText = builder.basicText;
×
UNCOV
60
    this.longTextMulti = builder.longTextMulti;
×
UNCOV
61
    this.basicTextMulti = builder.basicTextMulti;
×
UNCOV
62
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
63
  }
×
64

65
  public EnumWrapper<AiStudioAgentAskTypeField> getType() {
66
    return type;
1✔
67
  }
68

69
  public String getAccessState() {
70
    return accessState;
1✔
71
  }
72

73
  public String getDescription() {
74
    return description;
1✔
75
  }
76

77
  public String getCustomInstructions() {
78
    return customInstructions;
1✔
79
  }
80

81
  public AiStudioAgentLongTextTool getLongText() {
82
    return longText;
1✔
83
  }
84

85
  public AiStudioAgentBasicTextTool getBasicText() {
86
    return basicText;
1✔
87
  }
88

89
  public AiStudioAgentLongTextTool getLongTextMulti() {
90
    return longTextMulti;
1✔
91
  }
92

93
  public AiStudioAgentBasicTextTool getBasicTextMulti() {
94
    return basicTextMulti;
1✔
95
  }
96

97
  @Override
98
  public boolean equals(Object o) {
99
    if (this == o) {
×
100
      return true;
×
101
    }
102
    if (o == null || getClass() != o.getClass()) {
×
103
      return false;
×
104
    }
105
    AiStudioAgentAsk casted = (AiStudioAgentAsk) o;
×
106
    return Objects.equals(type, casted.type)
×
107
        && Objects.equals(accessState, casted.accessState)
×
UNCOV
108
        && Objects.equals(description, casted.description)
×
UNCOV
109
        && Objects.equals(customInstructions, casted.customInstructions)
×
UNCOV
110
        && Objects.equals(longText, casted.longText)
×
UNCOV
111
        && Objects.equals(basicText, casted.basicText)
×
112
        && Objects.equals(longTextMulti, casted.longTextMulti)
×
UNCOV
113
        && Objects.equals(basicTextMulti, casted.basicTextMulti);
×
114
  }
115

116
  @Override
117
  public int hashCode() {
UNCOV
118
    return Objects.hash(
×
119
        type,
120
        accessState,
121
        description,
122
        customInstructions,
123
        longText,
124
        basicText,
125
        longTextMulti,
126
        basicTextMulti);
127
  }
128

129
  @Override
130
  public String toString() {
UNCOV
131
    return "AiStudioAgentAsk{"
×
132
        + "type='"
133
        + type
134
        + '\''
135
        + ", "
136
        + "accessState='"
137
        + accessState
138
        + '\''
139
        + ", "
140
        + "description='"
141
        + description
142
        + '\''
143
        + ", "
144
        + "customInstructions='"
145
        + customInstructions
146
        + '\''
147
        + ", "
148
        + "longText='"
149
        + longText
150
        + '\''
151
        + ", "
152
        + "basicText='"
153
        + basicText
154
        + '\''
155
        + ", "
156
        + "longTextMulti='"
157
        + longTextMulti
158
        + '\''
159
        + ", "
160
        + "basicTextMulti='"
161
        + basicTextMulti
162
        + '\''
163
        + "}";
164
  }
165

166
  public static class Builder extends NullableFieldTracker {
167

168
    protected EnumWrapper<AiStudioAgentAskTypeField> type;
169

170
    protected final String accessState;
171

172
    protected final String description;
173

174
    protected String customInstructions;
175

176
    protected AiStudioAgentLongTextTool longText;
177

178
    protected AiStudioAgentBasicTextTool basicText;
179

180
    protected AiStudioAgentLongTextTool longTextMulti;
181

182
    protected AiStudioAgentBasicTextTool basicTextMulti;
183

184
    public Builder(String accessState, String description) {
UNCOV
185
      super();
×
186
      this.accessState = accessState;
×
187
      this.description = description;
×
UNCOV
188
      this.type =
×
189
          new EnumWrapper<AiStudioAgentAskTypeField>(AiStudioAgentAskTypeField.AI_AGENT_ASK);
UNCOV
190
    }
×
191

192
    public Builder type(AiStudioAgentAskTypeField type) {
UNCOV
193
      this.type = new EnumWrapper<AiStudioAgentAskTypeField>(type);
×
UNCOV
194
      return this;
×
195
    }
196

197
    public Builder type(EnumWrapper<AiStudioAgentAskTypeField> type) {
UNCOV
198
      this.type = type;
×
UNCOV
199
      return this;
×
200
    }
201

202
    public Builder customInstructions(String customInstructions) {
UNCOV
203
      this.customInstructions = customInstructions;
×
UNCOV
204
      this.markNullableFieldAsSet("custom_instructions");
×
UNCOV
205
      return this;
×
206
    }
207

208
    public Builder longText(AiStudioAgentLongTextTool longText) {
UNCOV
209
      this.longText = longText;
×
UNCOV
210
      return this;
×
211
    }
212

213
    public Builder basicText(AiStudioAgentBasicTextTool basicText) {
UNCOV
214
      this.basicText = basicText;
×
UNCOV
215
      return this;
×
216
    }
217

218
    public Builder longTextMulti(AiStudioAgentLongTextTool longTextMulti) {
UNCOV
219
      this.longTextMulti = longTextMulti;
×
UNCOV
220
      return this;
×
221
    }
222

223
    public Builder basicTextMulti(AiStudioAgentBasicTextTool basicTextMulti) {
UNCOV
224
      this.basicTextMulti = basicTextMulti;
×
UNCOV
225
      return this;
×
226
    }
227

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