• 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/aistudioagentextract/AiStudioAgentExtract.java
1
package com.box.sdkgen.schemas.aistudioagentextract;
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.aistudioagentbasictexttool.AiStudioAgentBasicTextTool;
7
import com.box.sdkgen.schemas.aistudioagentlongtexttool.AiStudioAgentLongTextTool;
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 AiStudioAgentExtract extends SerializableObject {
18

19
  /** The type of AI agent to be used for metadata extraction. */
20
  @JsonDeserialize(
21
      using = AiStudioAgentExtractTypeField.AiStudioAgentExtractTypeFieldDeserializer.class)
22
  @JsonSerialize(
23
      using = AiStudioAgentExtractTypeField.AiStudioAgentExtractTypeFieldSerializer.class)
24
  protected EnumWrapper<AiStudioAgentExtractTypeField> type;
25

26
  /** The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */
27
  @JsonProperty("access_state")
28
  protected final String accessState;
29

30
  /** The description of the AI agent. */
31
  protected final String description;
32

33
  /** Custom instructions for the AI agent. */
34
  @JsonProperty("custom_instructions")
35
  @Nullable
36
  protected String customInstructions;
37

38
  @JsonProperty("long_text")
39
  protected AiStudioAgentLongTextTool longText;
40

41
  @JsonProperty("basic_text")
42
  protected AiStudioAgentBasicTextTool basicText;
43

44
  @JsonProperty("basic_image")
45
  protected AiStudioAgentBasicTextTool basicImage;
46

47
  public AiStudioAgentExtract(
48
      @JsonProperty("access_state") String accessState,
49
      @JsonProperty("description") String description) {
50
    super();
×
51
    this.accessState = accessState;
×
52
    this.description = description;
×
53
    this.type =
×
54
        new EnumWrapper<AiStudioAgentExtractTypeField>(
55
            AiStudioAgentExtractTypeField.AI_AGENT_EXTRACT);
56
  }
×
57

58
  protected AiStudioAgentExtract(Builder builder) {
59
    super();
×
60
    this.type = builder.type;
×
61
    this.accessState = builder.accessState;
×
62
    this.description = builder.description;
×
63
    this.customInstructions = builder.customInstructions;
×
64
    this.longText = builder.longText;
×
65
    this.basicText = builder.basicText;
×
66
    this.basicImage = builder.basicImage;
×
67
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
68
  }
×
69

70
  public EnumWrapper<AiStudioAgentExtractTypeField> getType() {
71
    return type;
×
72
  }
73

74
  public String getAccessState() {
75
    return accessState;
×
76
  }
77

78
  public String getDescription() {
79
    return description;
×
80
  }
81

82
  public String getCustomInstructions() {
83
    return customInstructions;
×
84
  }
85

86
  public AiStudioAgentLongTextTool getLongText() {
87
    return longText;
×
88
  }
89

90
  public AiStudioAgentBasicTextTool getBasicText() {
91
    return basicText;
×
92
  }
93

94
  public AiStudioAgentBasicTextTool getBasicImage() {
95
    return basicImage;
×
96
  }
97

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

116
  @Override
117
  public int hashCode() {
118
    return Objects.hash(
×
119
        type, accessState, description, customInstructions, longText, basicText, basicImage);
120
  }
121

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

155
  public static class Builder extends NullableFieldTracker {
156

157
    protected EnumWrapper<AiStudioAgentExtractTypeField> type;
158

159
    protected final String accessState;
160

161
    protected final String description;
162

163
    protected String customInstructions;
164

165
    protected AiStudioAgentLongTextTool longText;
166

167
    protected AiStudioAgentBasicTextTool basicText;
168

169
    protected AiStudioAgentBasicTextTool basicImage;
170

171
    public Builder(String accessState, String description) {
172
      super();
×
173
      this.accessState = accessState;
×
174
      this.description = description;
×
175
      this.type =
×
176
          new EnumWrapper<AiStudioAgentExtractTypeField>(
177
              AiStudioAgentExtractTypeField.AI_AGENT_EXTRACT);
178
    }
×
179

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

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

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

196
    public Builder longText(AiStudioAgentLongTextTool longText) {
197
      this.longText = longText;
×
198
      return this;
×
199
    }
200

201
    public Builder basicText(AiStudioAgentBasicTextTool basicText) {
202
      this.basicText = basicText;
×
203
      return this;
×
204
    }
205

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

211
    public AiStudioAgentExtract build() {
212
      return new AiStudioAgentExtract(this);
×
213
    }
214
  }
215
}
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