• 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

12.07
/src/main/java/com/box/sdkgen/schemas/aistudioagentaskresponse/AiStudioAgentAskResponse.java
1
package com.box.sdkgen.schemas.aistudioagentaskresponse;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.aistudioagentbasictexttoolresponse.AiStudioAgentBasicTextToolResponse;
5
import com.box.sdkgen.schemas.aistudioagentlongtexttoolresponse.AiStudioAgentLongTextToolResponse;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
public class AiStudioAgentAskResponse extends SerializableObject {
13

14
  @JsonDeserialize(
15
      using = AiStudioAgentAskResponseTypeField.AiStudioAgentAskResponseTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using = AiStudioAgentAskResponseTypeField.AiStudioAgentAskResponseTypeFieldSerializer.class)
18
  protected EnumWrapper<AiStudioAgentAskResponseTypeField> type;
19

20
  @JsonProperty("access_state")
21
  protected final String accessState;
22

23
  protected final String description;
24

25
  @JsonProperty("custom_instructions")
26
  protected String customInstructions;
27

28
  @JsonProperty("long_text")
29
  protected AiStudioAgentLongTextToolResponse longText;
30

31
  @JsonProperty("basic_text")
32
  protected AiStudioAgentBasicTextToolResponse basicText;
33

34
  @JsonProperty("long_text_multi")
35
  protected AiStudioAgentLongTextToolResponse longTextMulti;
36

37
  @JsonProperty("basic_text_multi")
38
  protected AiStudioAgentBasicTextToolResponse basicTextMulti;
39

40
  public AiStudioAgentAskResponse(
41
      @JsonProperty("access_state") String accessState,
42
      @JsonProperty("description") String description) {
43
    super();
1✔
44
    this.accessState = accessState;
1✔
45
    this.description = description;
1✔
46
    this.type =
1✔
47
        new EnumWrapper<AiStudioAgentAskResponseTypeField>(
48
            AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
49
  }
1✔
50

51
  protected AiStudioAgentAskResponse(Builder builder) {
52
    super();
×
53
    this.type = builder.type;
×
54
    this.accessState = builder.accessState;
×
55
    this.description = builder.description;
×
56
    this.customInstructions = builder.customInstructions;
×
57
    this.longText = builder.longText;
×
58
    this.basicText = builder.basicText;
×
59
    this.longTextMulti = builder.longTextMulti;
×
60
    this.basicTextMulti = builder.basicTextMulti;
×
61
  }
×
62

63
  public EnumWrapper<AiStudioAgentAskResponseTypeField> getType() {
64
    return type;
×
65
  }
66

67
  public String getAccessState() {
68
    return accessState;
1✔
69
  }
70

71
  public String getDescription() {
72
    return description;
1✔
73
  }
74

75
  public String getCustomInstructions() {
76
    return customInstructions;
×
77
  }
78

79
  public AiStudioAgentLongTextToolResponse getLongText() {
80
    return longText;
×
81
  }
82

83
  public AiStudioAgentBasicTextToolResponse getBasicText() {
84
    return basicText;
×
85
  }
86

87
  public AiStudioAgentLongTextToolResponse getLongTextMulti() {
88
    return longTextMulti;
×
89
  }
90

91
  public AiStudioAgentBasicTextToolResponse getBasicTextMulti() {
92
    return basicTextMulti;
×
93
  }
94

95
  @Override
96
  public boolean equals(Object o) {
97
    if (this == o) {
×
98
      return true;
×
99
    }
100
    if (o == null || getClass() != o.getClass()) {
×
101
      return false;
×
102
    }
103
    AiStudioAgentAskResponse casted = (AiStudioAgentAskResponse) o;
×
104
    return Objects.equals(type, casted.type)
×
105
        && Objects.equals(accessState, casted.accessState)
×
106
        && Objects.equals(description, casted.description)
×
107
        && Objects.equals(customInstructions, casted.customInstructions)
×
108
        && Objects.equals(longText, casted.longText)
×
109
        && Objects.equals(basicText, casted.basicText)
×
110
        && Objects.equals(longTextMulti, casted.longTextMulti)
×
111
        && Objects.equals(basicTextMulti, casted.basicTextMulti);
×
112
  }
113

114
  @Override
115
  public int hashCode() {
116
    return Objects.hash(
×
117
        type,
118
        accessState,
119
        description,
120
        customInstructions,
121
        longText,
122
        basicText,
123
        longTextMulti,
124
        basicTextMulti);
125
  }
126

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

164
  public static class Builder {
165

166
    protected EnumWrapper<AiStudioAgentAskResponseTypeField> type;
167

168
    protected final String accessState;
169

170
    protected final String description;
171

172
    protected String customInstructions;
173

174
    protected AiStudioAgentLongTextToolResponse longText;
175

176
    protected AiStudioAgentBasicTextToolResponse basicText;
177

178
    protected AiStudioAgentLongTextToolResponse longTextMulti;
179

180
    protected AiStudioAgentBasicTextToolResponse basicTextMulti;
181

NEW
182
    public Builder(String accessState, String description) {
×
183
      this.accessState = accessState;
×
184
      this.description = description;
×
185
      this.type =
×
186
          new EnumWrapper<AiStudioAgentAskResponseTypeField>(
187
              AiStudioAgentAskResponseTypeField.AI_AGENT_ASK);
188
    }
×
189

190
    public Builder type(AiStudioAgentAskResponseTypeField type) {
191
      this.type = new EnumWrapper<AiStudioAgentAskResponseTypeField>(type);
×
192
      return this;
×
193
    }
194

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

200
    public Builder customInstructions(String customInstructions) {
201
      this.customInstructions = customInstructions;
×
202
      return this;
×
203
    }
204

205
    public Builder longText(AiStudioAgentLongTextToolResponse longText) {
206
      this.longText = longText;
×
207
      return this;
×
208
    }
209

210
    public Builder basicText(AiStudioAgentBasicTextToolResponse basicText) {
211
      this.basicText = basicText;
×
212
      return this;
×
213
    }
214

215
    public Builder longTextMulti(AiStudioAgentLongTextToolResponse longTextMulti) {
UNCOV
216
      this.longTextMulti = longTextMulti;
×
217
      return this;
×
218
    }
219

220
    public Builder basicTextMulti(AiStudioAgentBasicTextToolResponse basicTextMulti) {
UNCOV
221
      this.basicTextMulti = basicTextMulti;
×
222
      return this;
×
223
    }
224

225
    public AiStudioAgentAskResponse build() {
226
      return new AiStudioAgentAskResponse(this);
×
227
    }
228
  }
229
}
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