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

box / box-java-sdk-gen / #349

11 Jul 2025 02:24PM UTC coverage: 35.58% (-0.06%) from 35.639%
#349

push

github

web-flow
test: Improve names in transfer integration test (box/box-codegen#759) (#358)

16957 of 47659 relevant lines covered (35.58%)

0.36 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
@JsonFilter("nullablePropertyFilter")
16
public class AiStudioAgentExtract extends SerializableObject {
17

18
  @JsonDeserialize(
19
      using = AiStudioAgentExtractTypeField.AiStudioAgentExtractTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using = AiStudioAgentExtractTypeField.AiStudioAgentExtractTypeFieldSerializer.class)
22
  protected EnumWrapper<AiStudioAgentExtractTypeField> type;
23

24
  @JsonProperty("access_state")
25
  protected final String accessState;
26

27
  protected final String description;
28

29
  @JsonProperty("custom_instructions")
30
  @Nullable
31
  protected String customInstructions;
32

33
  @JsonProperty("long_text")
34
  protected AiStudioAgentLongTextTool longText;
35

36
  @JsonProperty("basic_text")
37
  protected AiStudioAgentBasicTextTool basicText;
38

39
  @JsonProperty("basic_image")
40
  protected AiStudioAgentBasicTextTool basicImage;
41

42
  public AiStudioAgentExtract(
43
      @JsonProperty("access_state") String accessState,
44
      @JsonProperty("description") String description) {
45
    super();
×
46
    this.accessState = accessState;
×
47
    this.description = description;
×
48
    this.type =
×
49
        new EnumWrapper<AiStudioAgentExtractTypeField>(
50
            AiStudioAgentExtractTypeField.AI_AGENT_EXTRACT);
51
  }
×
52

53
  protected AiStudioAgentExtract(Builder builder) {
54
    super();
×
55
    this.type = builder.type;
×
56
    this.accessState = builder.accessState;
×
57
    this.description = builder.description;
×
58
    this.customInstructions = builder.customInstructions;
×
59
    this.longText = builder.longText;
×
60
    this.basicText = builder.basicText;
×
61
    this.basicImage = builder.basicImage;
×
62
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
63
  }
×
64

65
  public EnumWrapper<AiStudioAgentExtractTypeField> getType() {
66
    return type;
×
67
  }
68

69
  public String getAccessState() {
70
    return accessState;
×
71
  }
72

73
  public String getDescription() {
74
    return description;
×
75
  }
76

77
  public String getCustomInstructions() {
78
    return customInstructions;
×
79
  }
80

81
  public AiStudioAgentLongTextTool getLongText() {
82
    return longText;
×
83
  }
84

85
  public AiStudioAgentBasicTextTool getBasicText() {
86
    return basicText;
×
87
  }
88

89
  public AiStudioAgentBasicTextTool getBasicImage() {
90
    return basicImage;
×
91
  }
92

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

111
  @Override
112
  public int hashCode() {
113
    return Objects.hash(
×
114
        type, accessState, description, customInstructions, longText, basicText, basicImage);
115
  }
116

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

150
  public static class Builder extends NullableFieldTracker {
151

152
    protected EnumWrapper<AiStudioAgentExtractTypeField> type;
153

154
    protected final String accessState;
155

156
    protected final String description;
157

158
    protected String customInstructions;
159

160
    protected AiStudioAgentLongTextTool longText;
161

162
    protected AiStudioAgentBasicTextTool basicText;
163

164
    protected AiStudioAgentBasicTextTool basicImage;
165

166
    public Builder(String accessState, String description) {
167
      super();
×
168
      this.accessState = accessState;
×
169
      this.description = description;
×
170
      this.type =
×
171
          new EnumWrapper<AiStudioAgentExtractTypeField>(
172
              AiStudioAgentExtractTypeField.AI_AGENT_EXTRACT);
173
    }
×
174

175
    public Builder type(AiStudioAgentExtractTypeField type) {
176
      this.type = new EnumWrapper<AiStudioAgentExtractTypeField>(type);
×
177
      return this;
×
178
    }
179

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

185
    public Builder customInstructions(String customInstructions) {
186
      this.customInstructions = customInstructions;
×
187
      this.markNullableFieldAsSet("custom_instructions");
×
188
      return this;
×
189
    }
190

191
    public Builder longText(AiStudioAgentLongTextTool longText) {
192
      this.longText = longText;
×
193
      return this;
×
194
    }
195

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

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

206
    public AiStudioAgentExtract build() {
207
      return new AiStudioAgentExtract(this);
×
208
    }
209
  }
210
}
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