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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

0.36 hits per line

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

5.36
/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.JsonProperty;
12
import java.util.Date;
13
import java.util.List;
14
import java.util.Objects;
15

16
public class AiSingleAgentResponseFull extends AiSingleAgentResponse {
17

18
  protected AiStudioAgentAskResponse ask;
19

20
  @JsonProperty("text_gen")
21
  protected AiStudioAgentTextGenResponse textGen;
22

23
  protected AiStudioAgentExtractResponse extract;
24

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

33
  protected AiSingleAgentResponseFull(Builder builder) {
34
    super(builder);
×
35
    this.ask = builder.ask;
×
36
    this.textGen = builder.textGen;
×
37
    this.extract = builder.extract;
×
38
  }
×
39

40
  public AiStudioAgentAskResponse getAsk() {
41
    return ask;
1✔
42
  }
43

44
  public AiStudioAgentTextGenResponse getTextGen() {
45
    return textGen;
×
46
  }
47

48
  public AiStudioAgentExtractResponse getExtract() {
49
    return extract;
×
50
  }
51

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

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

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

157
  public static class Builder extends AiSingleAgentResponse.Builder {
158

159
    protected AiStudioAgentAskResponse ask;
160

161
    protected AiStudioAgentTextGenResponse textGen;
162

163
    protected AiStudioAgentExtractResponse extract;
164

165
    public Builder(String id, String origin, String name, String accessState) {
UNCOV
166
      super(id, origin, name, accessState);
×
167
    }
×
168

169
    public Builder ask(AiStudioAgentAskResponse ask) {
170
      this.ask = ask;
×
171
      return this;
×
172
    }
173

174
    public Builder textGen(AiStudioAgentTextGenResponse textGen) {
175
      this.textGen = textGen;
×
176
      return this;
×
177
    }
178

179
    public Builder extract(AiStudioAgentExtractResponse extract) {
180
      this.extract = extract;
×
181
      return this;
×
182
    }
183

184
    @Override
185
    public Builder type(AiSingleAgentResponseTypeField type) {
186
      this.type = new EnumWrapper<AiSingleAgentResponseTypeField>(type);
×
187
      return this;
×
188
    }
189

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

196
    @Override
197
    public Builder createdBy(UserBase createdBy) {
198
      this.createdBy = createdBy;
×
199
      return this;
×
200
    }
201

202
    @Override
203
    public Builder createdAt(Date createdAt) {
204
      this.createdAt = createdAt;
×
205
      return this;
×
206
    }
207

208
    @Override
209
    public Builder modifiedBy(UserBase modifiedBy) {
210
      this.modifiedBy = modifiedBy;
×
211
      return this;
×
212
    }
213

214
    @Override
215
    public Builder modifiedAt(Date modifiedAt) {
216
      this.modifiedAt = modifiedAt;
×
217
      return this;
×
218
    }
219

220
    @Override
221
    public Builder iconReference(String iconReference) {
222
      this.iconReference = iconReference;
×
223
      return this;
×
224
    }
225

226
    @Override
227
    public Builder allowedEntities(List<AiAgentAllowedEntity> allowedEntities) {
UNCOV
228
      this.allowedEntities = allowedEntities;
×
229
      return this;
×
230
    }
231

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