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

box / box-java-sdk / #6243

10 Feb 2026 05:27PM UTC coverage: 18.192% (-17.5%) from 35.714%
#6243

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2147 existing lines in 545 files now uncovered.

7388 of 40611 relevant lines covered (18.19%)

0.21 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/aistudioagentextractresponse/AiStudioAgentExtractResponse.java
1
package com.box.sdkgen.schemas.aistudioagentextractresponse;
2

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

15
/** The AI agent to be used for metadata extraction. */
16
@JsonFilter("nullablePropertyFilter")
17
public class AiStudioAgentExtractResponse extends SerializableObject {
18

19
  /** The type of AI agent to be used for metadata extraction. */
20
  @JsonDeserialize(
21
      using =
22
          AiStudioAgentExtractResponseTypeField.AiStudioAgentExtractResponseTypeFieldDeserializer
23
              .class)
24
  @JsonSerialize(
25
      using =
26
          AiStudioAgentExtractResponseTypeField.AiStudioAgentExtractResponseTypeFieldSerializer
27
              .class)
28
  protected EnumWrapper<AiStudioAgentExtractResponseTypeField> type;
29

30
  /** The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */
31
  @JsonProperty("access_state")
32
  protected final String accessState;
33

34
  /** The description of the AI agent. */
35
  protected final String description;
36

37
  /** Custom instructions for the AI agent. */
38
  @JsonProperty("custom_instructions")
39
  @Nullable
40
  protected String customInstructions;
41

42
  @JsonProperty("long_text")
43
  protected AiStudioAgentLongTextToolResponse longText;
44

45
  @JsonProperty("basic_text")
46
  protected AiStudioAgentBasicTextToolResponse basicText;
47

48
  @JsonProperty("basic_image")
49
  protected AiStudioAgentBasicTextToolResponse basicImage;
50

51
  public AiStudioAgentExtractResponse(
52
      @JsonProperty("access_state") String accessState,
53
      @JsonProperty("description") String description) {
54
    super();
×
55
    this.accessState = accessState;
×
56
    this.description = description;
×
57
    this.type =
×
58
        new EnumWrapper<AiStudioAgentExtractResponseTypeField>(
59
            AiStudioAgentExtractResponseTypeField.AI_AGENT_EXTRACT);
60
  }
×
61

62
  protected AiStudioAgentExtractResponse(Builder builder) {
63
    super();
×
64
    this.type = builder.type;
×
65
    this.accessState = builder.accessState;
×
66
    this.description = builder.description;
×
67
    this.customInstructions = builder.customInstructions;
×
68
    this.longText = builder.longText;
×
69
    this.basicText = builder.basicText;
×
70
    this.basicImage = builder.basicImage;
×
71
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
72
  }
×
73

74
  public EnumWrapper<AiStudioAgentExtractResponseTypeField> getType() {
75
    return type;
×
76
  }
77

78
  public String getAccessState() {
79
    return accessState;
×
80
  }
81

82
  public String getDescription() {
83
    return description;
×
84
  }
85

86
  public String getCustomInstructions() {
87
    return customInstructions;
×
88
  }
89

90
  public AiStudioAgentLongTextToolResponse getLongText() {
91
    return longText;
×
92
  }
93

94
  public AiStudioAgentBasicTextToolResponse getBasicText() {
95
    return basicText;
×
96
  }
97

98
  public AiStudioAgentBasicTextToolResponse getBasicImage() {
99
    return basicImage;
×
100
  }
101

102
  @Override
103
  public boolean equals(Object o) {
104
    if (this == o) {
×
105
      return true;
×
106
    }
107
    if (o == null || getClass() != o.getClass()) {
×
108
      return false;
×
109
    }
110
    AiStudioAgentExtractResponse casted = (AiStudioAgentExtractResponse) o;
×
111
    return Objects.equals(type, casted.type)
×
112
        && Objects.equals(accessState, casted.accessState)
×
113
        && Objects.equals(description, casted.description)
×
114
        && Objects.equals(customInstructions, casted.customInstructions)
×
115
        && Objects.equals(longText, casted.longText)
×
116
        && Objects.equals(basicText, casted.basicText)
×
117
        && Objects.equals(basicImage, casted.basicImage);
×
118
  }
119

120
  @Override
121
  public int hashCode() {
122
    return Objects.hash(
×
123
        type, accessState, description, customInstructions, longText, basicText, basicImage);
124
  }
125

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

159
  public static class Builder extends NullableFieldTracker {
160

161
    protected EnumWrapper<AiStudioAgentExtractResponseTypeField> type;
162

163
    protected final String accessState;
164

165
    protected final String description;
166

167
    protected String customInstructions;
168

169
    protected AiStudioAgentLongTextToolResponse longText;
170

171
    protected AiStudioAgentBasicTextToolResponse basicText;
172

173
    protected AiStudioAgentBasicTextToolResponse basicImage;
174

175
    public Builder(String accessState, String description) {
176
      super();
×
177
      this.accessState = accessState;
×
178
      this.description = description;
×
179
    }
×
180

181
    public Builder type(AiStudioAgentExtractResponseTypeField type) {
UNCOV
182
      this.type = new EnumWrapper<AiStudioAgentExtractResponseTypeField>(type);
×
UNCOV
183
      return this;
×
184
    }
185

186
    public Builder type(EnumWrapper<AiStudioAgentExtractResponseTypeField> type) {
UNCOV
187
      this.type = type;
×
UNCOV
188
      return this;
×
189
    }
190

191
    public Builder customInstructions(String customInstructions) {
UNCOV
192
      this.customInstructions = customInstructions;
×
UNCOV
193
      this.markNullableFieldAsSet("custom_instructions");
×
UNCOV
194
      return this;
×
195
    }
196

197
    public Builder longText(AiStudioAgentLongTextToolResponse longText) {
UNCOV
198
      this.longText = longText;
×
UNCOV
199
      return this;
×
200
    }
201

202
    public Builder basicText(AiStudioAgentBasicTextToolResponse basicText) {
UNCOV
203
      this.basicText = basicText;
×
UNCOV
204
      return this;
×
205
    }
206

207
    public Builder basicImage(AiStudioAgentBasicTextToolResponse basicImage) {
UNCOV
208
      this.basicImage = basicImage;
×
UNCOV
209
      return this;
×
210
    }
211

212
    public AiStudioAgentExtractResponse build() {
NEW
213
      if (this.type == null) {
×
NEW
214
        this.type =
×
215
            new EnumWrapper<AiStudioAgentExtractResponseTypeField>(
216
                AiStudioAgentExtractResponseTypeField.AI_AGENT_EXTRACT);
217
      }
UNCOV
218
      return new AiStudioAgentExtractResponse(this);
×
219
    }
220
  }
221
}
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