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

box / box-java-sdk-gen / #155

30 May 2025 01:03PM UTC coverage: 35.646% (+0.3%) from 35.311%
#155

push

github

web-flow
fix: Fix downscope token to use `retrieveToken` method for token retrieval (box/box-codegen#731) (#320)

4 of 4 new or added lines in 4 files covered. (100.0%)

2952 existing lines in 99 files now uncovered.

15628 of 43842 relevant lines covered (35.65%)

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(AiSingleAgentResponseFullBuilder builder) {
34
    super(builder);
×
35
    this.ask = builder.ask;
×
36
    this.textGen = builder.textGen;
×
37
    this.extract = builder.extract;
×
UNCOV
38
  }
×
39

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

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

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

52
  @Override
53
  public boolean equals(Object o) {
54
    if (this == o) {
×
UNCOV
55
      return true;
×
56
    }
57
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
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)
×
UNCOV
74
        && Objects.equals(extract, casted.extract);
×
75
  }
76

77
  @Override
78
  public int hashCode() {
UNCOV
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() {
UNCOV
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 AiSingleAgentResponseFullBuilder extends AiSingleAgentResponseBuilder {
158

159
    protected AiStudioAgentAskResponse ask;
160

161
    protected AiStudioAgentTextGenResponse textGen;
162

163
    protected AiStudioAgentExtractResponse extract;
164

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

170
    public AiSingleAgentResponseFullBuilder ask(AiStudioAgentAskResponse ask) {
171
      this.ask = ask;
×
UNCOV
172
      return this;
×
173
    }
174

175
    public AiSingleAgentResponseFullBuilder textGen(AiStudioAgentTextGenResponse textGen) {
176
      this.textGen = textGen;
×
UNCOV
177
      return this;
×
178
    }
179

180
    public AiSingleAgentResponseFullBuilder extract(AiStudioAgentExtractResponse extract) {
181
      this.extract = extract;
×
UNCOV
182
      return this;
×
183
    }
184

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

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

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

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

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

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

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

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

234
    public AiSingleAgentResponseFull build() {
UNCOV
235
      return new AiSingleAgentResponseFull(this);
×
236
    }
237
  }
238
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc