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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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
      this.type =
×
180
          new EnumWrapper<AiStudioAgentExtractResponseTypeField>(
181
              AiStudioAgentExtractResponseTypeField.AI_AGENT_EXTRACT);
182
    }
×
183

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

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

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

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

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

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

215
    public AiStudioAgentExtractResponse build() {
216
      return new AiStudioAgentExtractResponse(this);
×
217
    }
218
  }
219
}
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