• 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

5.26
/src/main/java/com/box/sdkgen/schemas/aisingleagentresponsefull/AiSingleAgentResponseFull.java
1
package com.box.sdkgen.schemas.aisingleagentresponsefull;
2

3
import com.box.sdkgen.schemas.aiagentallowedentity.AiAgentAllowedEntity;
4
import com.box.sdkgen.schemas.aisingleagentresponse.AiSingleAgentResponse;
5
import com.box.sdkgen.schemas.aisingleagentresponse.AiSingleAgentResponseTypeField;
6
import com.box.sdkgen.schemas.aistudioagentaskresponse.AiStudioAgentAskResponse;
7
import com.box.sdkgen.schemas.aistudioagentextractresponse.AiStudioAgentExtractResponse;
8
import com.box.sdkgen.schemas.aistudioagenttextgenresponse.AiStudioAgentTextGenResponse;
9
import com.box.sdkgen.schemas.userbase.UserBase;
10
import com.box.sdkgen.serialization.json.EnumWrapper;
11
import com.fasterxml.jackson.annotation.JsonFilter;
12
import com.fasterxml.jackson.annotation.JsonProperty;
13
import java.util.Date;
14
import java.util.List;
15
import java.util.Objects;
16

17
@JsonFilter("nullablePropertyFilter")
18
public class AiSingleAgentResponseFull extends AiSingleAgentResponse {
19

20
  protected AiStudioAgentAskResponse ask;
21

22
  @JsonProperty("text_gen")
23
  protected AiStudioAgentTextGenResponse textGen;
24

25
  protected AiStudioAgentExtractResponse extract;
26

27
  public AiSingleAgentResponseFull(
28
      @JsonProperty("id") String id,
29
      @JsonProperty("origin") String origin,
30
      @JsonProperty("name") String name,
31
      @JsonProperty("access_state") String accessState) {
32
    super(id, origin, name, accessState);
1✔
33
  }
1✔
34

35
  protected AiSingleAgentResponseFull(Builder builder) {
36
    super(builder);
×
37
    this.ask = builder.ask;
×
38
    this.textGen = builder.textGen;
×
UNCOV
39
    this.extract = builder.extract;
×
UNCOV
40
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
41
  }
×
42

43
  public AiStudioAgentAskResponse getAsk() {
44
    return ask;
1✔
45
  }
46

47
  public AiStudioAgentTextGenResponse getTextGen() {
UNCOV
48
    return textGen;
×
49
  }
50

51
  public AiStudioAgentExtractResponse getExtract() {
UNCOV
52
    return extract;
×
53
  }
54

55
  @Override
56
  public boolean equals(Object o) {
57
    if (this == o) {
×
58
      return true;
×
59
    }
60
    if (o == null || getClass() != o.getClass()) {
×
61
      return false;
×
62
    }
63
    AiSingleAgentResponseFull casted = (AiSingleAgentResponseFull) o;
×
64
    return Objects.equals(id, casted.id)
×
65
        && Objects.equals(type, casted.type)
×
66
        && Objects.equals(origin, casted.origin)
×
67
        && Objects.equals(name, casted.name)
×
68
        && Objects.equals(accessState, casted.accessState)
×
69
        && Objects.equals(createdBy, casted.createdBy)
×
70
        && Objects.equals(createdAt, casted.createdAt)
×
71
        && Objects.equals(modifiedBy, casted.modifiedBy)
×
72
        && Objects.equals(modifiedAt, casted.modifiedAt)
×
73
        && Objects.equals(iconReference, casted.iconReference)
×
74
        && Objects.equals(allowedEntities, casted.allowedEntities)
×
UNCOV
75
        && Objects.equals(ask, casted.ask)
×
UNCOV
76
        && Objects.equals(textGen, casted.textGen)
×
UNCOV
77
        && Objects.equals(extract, casted.extract);
×
78
  }
79

80
  @Override
81
  public int hashCode() {
UNCOV
82
    return Objects.hash(
×
83
        id,
84
        type,
85
        origin,
86
        name,
87
        accessState,
88
        createdBy,
89
        createdAt,
90
        modifiedBy,
91
        modifiedAt,
92
        iconReference,
93
        allowedEntities,
94
        ask,
95
        textGen,
96
        extract);
97
  }
98

99
  @Override
100
  public String toString() {
UNCOV
101
    return "AiSingleAgentResponseFull{"
×
102
        + "id='"
103
        + id
104
        + '\''
105
        + ", "
106
        + "type='"
107
        + type
108
        + '\''
109
        + ", "
110
        + "origin='"
111
        + origin
112
        + '\''
113
        + ", "
114
        + "name='"
115
        + name
116
        + '\''
117
        + ", "
118
        + "accessState='"
119
        + accessState
120
        + '\''
121
        + ", "
122
        + "createdBy='"
123
        + createdBy
124
        + '\''
125
        + ", "
126
        + "createdAt='"
127
        + createdAt
128
        + '\''
129
        + ", "
130
        + "modifiedBy='"
131
        + modifiedBy
132
        + '\''
133
        + ", "
134
        + "modifiedAt='"
135
        + modifiedAt
136
        + '\''
137
        + ", "
138
        + "iconReference='"
139
        + iconReference
140
        + '\''
141
        + ", "
142
        + "allowedEntities='"
143
        + allowedEntities
144
        + '\''
145
        + ", "
146
        + "ask='"
147
        + ask
148
        + '\''
149
        + ", "
150
        + "textGen='"
151
        + textGen
152
        + '\''
153
        + ", "
154
        + "extract='"
155
        + extract
156
        + '\''
157
        + "}";
158
  }
159

160
  public static class Builder extends AiSingleAgentResponse.Builder {
161

162
    protected AiStudioAgentAskResponse ask;
163

164
    protected AiStudioAgentTextGenResponse textGen;
165

166
    protected AiStudioAgentExtractResponse extract;
167

168
    public Builder(String id, String origin, String name, String accessState) {
UNCOV
169
      super(id, origin, name, accessState);
×
170
    }
×
171

172
    public Builder ask(AiStudioAgentAskResponse ask) {
UNCOV
173
      this.ask = ask;
×
UNCOV
174
      return this;
×
175
    }
176

177
    public Builder textGen(AiStudioAgentTextGenResponse textGen) {
UNCOV
178
      this.textGen = textGen;
×
UNCOV
179
      return this;
×
180
    }
181

182
    public Builder extract(AiStudioAgentExtractResponse extract) {
UNCOV
183
      this.extract = extract;
×
UNCOV
184
      return this;
×
185
    }
186

187
    @Override
188
    public Builder type(AiSingleAgentResponseTypeField type) {
UNCOV
189
      this.type = new EnumWrapper<AiSingleAgentResponseTypeField>(type);
×
UNCOV
190
      return this;
×
191
    }
192

193
    @Override
194
    public Builder type(EnumWrapper<AiSingleAgentResponseTypeField> type) {
UNCOV
195
      this.type = type;
×
UNCOV
196
      return this;
×
197
    }
198

199
    @Override
200
    public Builder createdBy(UserBase createdBy) {
UNCOV
201
      this.createdBy = createdBy;
×
UNCOV
202
      return this;
×
203
    }
204

205
    @Override
206
    public Builder createdAt(Date createdAt) {
UNCOV
207
      this.createdAt = createdAt;
×
UNCOV
208
      return this;
×
209
    }
210

211
    @Override
212
    public Builder modifiedBy(UserBase modifiedBy) {
UNCOV
213
      this.modifiedBy = modifiedBy;
×
UNCOV
214
      return this;
×
215
    }
216

217
    @Override
218
    public Builder modifiedAt(Date modifiedAt) {
UNCOV
219
      this.modifiedAt = modifiedAt;
×
UNCOV
220
      return this;
×
221
    }
222

223
    @Override
224
    public Builder iconReference(String iconReference) {
UNCOV
225
      this.iconReference = iconReference;
×
UNCOV
226
      return this;
×
227
    }
228

229
    @Override
230
    public Builder allowedEntities(List<AiAgentAllowedEntity> allowedEntities) {
UNCOV
231
      this.allowedEntities = allowedEntities;
×
UNCOV
232
      return this;
×
233
    }
234

235
    public AiSingleAgentResponseFull build() {
UNCOV
236
      return new AiSingleAgentResponseFull(this);
×
237
    }
238
  }
239
}
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