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

18
  @JsonDeserialize(
19
      using =
20
          AiStudioAgentExtractResponseTypeField.AiStudioAgentExtractResponseTypeFieldDeserializer
21
              .class)
22
  @JsonSerialize(
23
      using =
24
          AiStudioAgentExtractResponseTypeField.AiStudioAgentExtractResponseTypeFieldSerializer
25
              .class)
26
  protected EnumWrapper<AiStudioAgentExtractResponseTypeField> type;
27

28
  @JsonProperty("access_state")
29
  protected final String accessState;
30

31
  protected final String description;
32

33
  @JsonProperty("custom_instructions")
34
  @Nullable
35
  protected String customInstructions;
36

37
  @JsonProperty("long_text")
38
  protected AiStudioAgentLongTextToolResponse longText;
39

40
  @JsonProperty("basic_text")
41
  protected AiStudioAgentBasicTextToolResponse basicText;
42

43
  @JsonProperty("basic_image")
44
  protected AiStudioAgentBasicTextToolResponse basicImage;
45

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

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

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

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

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

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

85
  public AiStudioAgentLongTextToolResponse getLongText() {
86
    return longText;
×
87
  }
88

89
  public AiStudioAgentBasicTextToolResponse getBasicText() {
90
    return basicText;
×
91
  }
92

93
  public AiStudioAgentBasicTextToolResponse getBasicImage() {
94
    return basicImage;
×
95
  }
96

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

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

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

154
  public static class Builder extends NullableFieldTracker {
155

156
    protected EnumWrapper<AiStudioAgentExtractResponseTypeField> type;
157

158
    protected final String accessState;
159

160
    protected final String description;
161

162
    protected String customInstructions;
163

164
    protected AiStudioAgentLongTextToolResponse longText;
165

166
    protected AiStudioAgentBasicTextToolResponse basicText;
167

168
    protected AiStudioAgentBasicTextToolResponse basicImage;
169

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

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

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

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

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

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

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

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