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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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.time.OffsetDateTime;
14
import java.util.List;
15
import java.util.Objects;
16

17
/** Full representation of an AI Agent instance. */
18
@JsonFilter("nullablePropertyFilter")
19
public class AiSingleAgentResponseFull extends AiSingleAgentResponse {
20

21
  protected AiStudioAgentAskResponse ask;
22

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

26
  protected AiStudioAgentExtractResponse extract;
27

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

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

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

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

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

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

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

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

161
  public static class Builder extends AiSingleAgentResponse.Builder {
162

163
    protected AiStudioAgentAskResponse ask;
164

165
    protected AiStudioAgentTextGenResponse textGen;
166

167
    protected AiStudioAgentExtractResponse extract;
168

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

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

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

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

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

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

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

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

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

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

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

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

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