• 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

22.41
/src/main/java/com/box/sdkgen/schemas/aistudioagentask/AiStudioAgentAsk.java
1
package com.box.sdkgen.schemas.aistudioagentask;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.aistudioagentbasictexttool.AiStudioAgentBasicTextTool;
5
import com.box.sdkgen.schemas.aistudioagentlongtexttool.AiStudioAgentLongTextTool;
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 AiStudioAgentAsk extends SerializableObject {
13

14
  @JsonDeserialize(using = AiStudioAgentAskTypeField.AiStudioAgentAskTypeFieldDeserializer.class)
15
  @JsonSerialize(using = AiStudioAgentAskTypeField.AiStudioAgentAskTypeFieldSerializer.class)
16
  protected EnumWrapper<AiStudioAgentAskTypeField> type;
17

18
  @JsonProperty("access_state")
19
  protected final String accessState;
20

21
  protected final String description;
22

23
  @JsonProperty("custom_instructions")
24
  protected String customInstructions;
25

26
  @JsonProperty("long_text")
27
  protected AiStudioAgentLongTextTool longText;
28

29
  @JsonProperty("basic_text")
30
  protected AiStudioAgentBasicTextTool basicText;
31

32
  @JsonProperty("long_text_multi")
33
  protected AiStudioAgentLongTextTool longTextMulti;
34

35
  @JsonProperty("basic_text_multi")
36
  protected AiStudioAgentBasicTextTool basicTextMulti;
37

38
  public AiStudioAgentAsk(
39
      @JsonProperty("access_state") String accessState,
40
      @JsonProperty("description") String description) {
41
    super();
1✔
42
    this.accessState = accessState;
1✔
43
    this.description = description;
1✔
44
    this.type = new EnumWrapper<AiStudioAgentAskTypeField>(AiStudioAgentAskTypeField.AI_AGENT_ASK);
1✔
45
  }
1✔
46

47
  protected AiStudioAgentAsk(Builder builder) {
48
    super();
×
49
    this.type = builder.type;
×
50
    this.accessState = builder.accessState;
×
51
    this.description = builder.description;
×
52
    this.customInstructions = builder.customInstructions;
×
53
    this.longText = builder.longText;
×
54
    this.basicText = builder.basicText;
×
55
    this.longTextMulti = builder.longTextMulti;
×
56
    this.basicTextMulti = builder.basicTextMulti;
×
57
  }
×
58

59
  public EnumWrapper<AiStudioAgentAskTypeField> getType() {
60
    return type;
1✔
61
  }
62

63
  public String getAccessState() {
64
    return accessState;
1✔
65
  }
66

67
  public String getDescription() {
68
    return description;
1✔
69
  }
70

71
  public String getCustomInstructions() {
72
    return customInstructions;
1✔
73
  }
74

75
  public AiStudioAgentLongTextTool getLongText() {
76
    return longText;
1✔
77
  }
78

79
  public AiStudioAgentBasicTextTool getBasicText() {
80
    return basicText;
1✔
81
  }
82

83
  public AiStudioAgentLongTextTool getLongTextMulti() {
84
    return longTextMulti;
1✔
85
  }
86

87
  public AiStudioAgentBasicTextTool getBasicTextMulti() {
88
    return basicTextMulti;
1✔
89
  }
90

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

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

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

160
  public static class Builder {
161

162
    protected EnumWrapper<AiStudioAgentAskTypeField> type;
163

164
    protected final String accessState;
165

166
    protected final String description;
167

168
    protected String customInstructions;
169

170
    protected AiStudioAgentLongTextTool longText;
171

172
    protected AiStudioAgentBasicTextTool basicText;
173

174
    protected AiStudioAgentLongTextTool longTextMulti;
175

176
    protected AiStudioAgentBasicTextTool basicTextMulti;
177

NEW
178
    public Builder(String accessState, String description) {
×
179
      this.accessState = accessState;
×
180
      this.description = description;
×
181
      this.type =
×
182
          new EnumWrapper<AiStudioAgentAskTypeField>(AiStudioAgentAskTypeField.AI_AGENT_ASK);
183
    }
×
184

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

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

195
    public Builder customInstructions(String customInstructions) {
196
      this.customInstructions = customInstructions;
×
197
      return this;
×
198
    }
199

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

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

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

215
    public Builder basicTextMulti(AiStudioAgentBasicTextTool basicTextMulti) {
216
      this.basicTextMulti = basicTextMulti;
×
217
      return this;
×
218
    }
219

220
    public AiStudioAgentAsk build() {
221
      return new AiStudioAgentAsk(this);
×
222
    }
223
  }
224
}
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