• 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

11.67
/src/main/java/com/box/sdkgen/schemas/aistudioagentaskresponse/AiStudioAgentAskResponse.java
1
package com.box.sdkgen.schemas.aistudioagentaskresponse;
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.aistudioagentbasictexttoolresponse.AiStudioAgentBasicTextToolResponse;
7
import com.box.sdkgen.schemas.aistudioagentlongtexttoolresponse.AiStudioAgentLongTextToolResponse;
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 AiStudioAgentAskResponse extends SerializableObject {
17

18
  @JsonDeserialize(
19
      using = AiStudioAgentAskResponseTypeField.AiStudioAgentAskResponseTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using = AiStudioAgentAskResponseTypeField.AiStudioAgentAskResponseTypeFieldSerializer.class)
22
  protected EnumWrapper<AiStudioAgentAskResponseTypeField> type;
23

24
  @JsonProperty("access_state")
25
  protected final String accessState;
26

27
  protected final String description;
28

29
  @JsonProperty("custom_instructions")
30
  @Nullable
31
  protected String customInstructions;
32

33
  @JsonProperty("long_text")
34
  protected AiStudioAgentLongTextToolResponse longText;
35

36
  @JsonProperty("basic_text")
37
  protected AiStudioAgentBasicTextToolResponse basicText;
38

39
  @JsonProperty("long_text_multi")
40
  protected AiStudioAgentLongTextToolResponse longTextMulti;
41

42
  @JsonProperty("basic_text_multi")
43
  protected AiStudioAgentBasicTextToolResponse basicTextMulti;
44

45
  public AiStudioAgentAskResponse(
46
      @JsonProperty("access_state") String accessState,
47
      @JsonProperty("description") String description) {
48
    super();
1✔
49
    this.accessState = accessState;
1✔
50
    this.description = description;
1✔
51
    this.type =
1✔
52
        new EnumWrapper<AiStudioAgentAskResponseTypeField>(
53
            AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
54
  }
1✔
55

56
  protected AiStudioAgentAskResponse(Builder builder) {
57
    super();
×
58
    this.type = builder.type;
×
59
    this.accessState = builder.accessState;
×
60
    this.description = builder.description;
×
61
    this.customInstructions = builder.customInstructions;
×
UNCOV
62
    this.longText = builder.longText;
×
UNCOV
63
    this.basicText = builder.basicText;
×
64
    this.longTextMulti = builder.longTextMulti;
×
UNCOV
65
    this.basicTextMulti = builder.basicTextMulti;
×
UNCOV
66
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
67
  }
×
68

69
  public EnumWrapper<AiStudioAgentAskResponseTypeField> getType() {
UNCOV
70
    return type;
×
71
  }
72

73
  public String getAccessState() {
74
    return accessState;
1✔
75
  }
76

77
  public String getDescription() {
78
    return description;
1✔
79
  }
80

81
  public String getCustomInstructions() {
UNCOV
82
    return customInstructions;
×
83
  }
84

85
  public AiStudioAgentLongTextToolResponse getLongText() {
UNCOV
86
    return longText;
×
87
  }
88

89
  public AiStudioAgentBasicTextToolResponse getBasicText() {
UNCOV
90
    return basicText;
×
91
  }
92

93
  public AiStudioAgentLongTextToolResponse getLongTextMulti() {
UNCOV
94
    return longTextMulti;
×
95
  }
96

97
  public AiStudioAgentBasicTextToolResponse getBasicTextMulti() {
98
    return basicTextMulti;
×
99
  }
100

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

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

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

170
  public static class Builder extends NullableFieldTracker {
171

172
    protected EnumWrapper<AiStudioAgentAskResponseTypeField> type;
173

174
    protected final String accessState;
175

176
    protected final String description;
177

178
    protected String customInstructions;
179

180
    protected AiStudioAgentLongTextToolResponse longText;
181

182
    protected AiStudioAgentBasicTextToolResponse basicText;
183

184
    protected AiStudioAgentLongTextToolResponse longTextMulti;
185

186
    protected AiStudioAgentBasicTextToolResponse basicTextMulti;
187

188
    public Builder(String accessState, String description) {
UNCOV
189
      super();
×
UNCOV
190
      this.accessState = accessState;
×
191
      this.description = description;
×
192
      this.type =
×
193
          new EnumWrapper<AiStudioAgentAskResponseTypeField>(
194
              AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
UNCOV
195
    }
×
196

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

202
    public Builder type(EnumWrapper<AiStudioAgentAskResponseTypeField> type) {
UNCOV
203
      this.type = type;
×
UNCOV
204
      return this;
×
205
    }
206

207
    public Builder customInstructions(String customInstructions) {
UNCOV
208
      this.customInstructions = customInstructions;
×
UNCOV
209
      this.markNullableFieldAsSet("custom_instructions");
×
UNCOV
210
      return this;
×
211
    }
212

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

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

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

228
    public Builder basicTextMulti(AiStudioAgentBasicTextToolResponse basicTextMulti) {
UNCOV
229
      this.basicTextMulti = basicTextMulti;
×
UNCOV
230
      return this;
×
231
    }
232

233
    public AiStudioAgentAskResponse build() {
UNCOV
234
      return new AiStudioAgentAskResponse(this);
×
235
    }
236
  }
237
}
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