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

box / box-java-sdk-gen / #226

20 Jun 2025 03:14PM UTC coverage: 35.609% (-0.2%) from 35.816%
#226

push

github

web-flow
feat: Shorten builder names in Java (box/box-codegen#742) (#334)

367 of 1570 new or added lines in 984 files covered. (23.38%)

674 existing lines in 370 files now uncovered.

16125 of 45284 relevant lines covered (35.61%)

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.SerializableObject;
4
import com.box.sdkgen.schemas.aistudioagentbasictexttoolresponse.AiStudioAgentBasicTextToolResponse;
5
import com.box.sdkgen.schemas.aistudioagentlongtexttoolresponse.AiStudioAgentLongTextToolResponse;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
public class AiStudioAgentExtractResponse extends SerializableObject {
13

14
  @JsonDeserialize(
15
      using =
16
          AiStudioAgentExtractResponseTypeField.AiStudioAgentExtractResponseTypeFieldDeserializer
17
              .class)
18
  @JsonSerialize(
19
      using =
20
          AiStudioAgentExtractResponseTypeField.AiStudioAgentExtractResponseTypeFieldSerializer
21
              .class)
22
  protected EnumWrapper<AiStudioAgentExtractResponseTypeField> type;
23

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

27
  protected final String description;
28

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

32
  @JsonProperty("long_text")
33
  protected AiStudioAgentLongTextToolResponse longText;
34

35
  @JsonProperty("basic_text")
36
  protected AiStudioAgentBasicTextToolResponse basicText;
37

38
  public AiStudioAgentExtractResponse(
39
      @JsonProperty("access_state") String accessState,
40
      @JsonProperty("description") String description) {
41
    super();
×
42
    this.accessState = accessState;
×
43
    this.description = description;
×
44
    this.type =
×
45
        new EnumWrapper<AiStudioAgentExtractResponseTypeField>(
46
            AiStudioAgentExtractResponseTypeField.AI_AGENT_EXTRACT);
47
  }
×
48

49
  protected AiStudioAgentExtractResponse(Builder builder) {
50
    super();
×
51
    this.type = builder.type;
×
52
    this.accessState = builder.accessState;
×
53
    this.description = builder.description;
×
54
    this.customInstructions = builder.customInstructions;
×
55
    this.longText = builder.longText;
×
56
    this.basicText = builder.basicText;
×
57
  }
×
58

59
  public EnumWrapper<AiStudioAgentExtractResponseTypeField> getType() {
60
    return type;
×
61
  }
62

63
  public String getAccessState() {
64
    return accessState;
×
65
  }
66

67
  public String getDescription() {
68
    return description;
×
69
  }
70

71
  public String getCustomInstructions() {
72
    return customInstructions;
×
73
  }
74

75
  public AiStudioAgentLongTextToolResponse getLongText() {
76
    return longText;
×
77
  }
78

79
  public AiStudioAgentBasicTextToolResponse getBasicText() {
80
    return basicText;
×
81
  }
82

83
  @Override
84
  public boolean equals(Object o) {
85
    if (this == o) {
×
86
      return true;
×
87
    }
88
    if (o == null || getClass() != o.getClass()) {
×
89
      return false;
×
90
    }
91
    AiStudioAgentExtractResponse casted = (AiStudioAgentExtractResponse) o;
×
92
    return Objects.equals(type, casted.type)
×
93
        && Objects.equals(accessState, casted.accessState)
×
94
        && Objects.equals(description, casted.description)
×
95
        && Objects.equals(customInstructions, casted.customInstructions)
×
96
        && Objects.equals(longText, casted.longText)
×
97
        && Objects.equals(basicText, casted.basicText);
×
98
  }
99

100
  @Override
101
  public int hashCode() {
102
    return Objects.hash(type, accessState, description, customInstructions, longText, basicText);
×
103
  }
104

105
  @Override
106
  public String toString() {
107
    return "AiStudioAgentExtractResponse{"
×
108
        + "type='"
109
        + type
110
        + '\''
111
        + ", "
112
        + "accessState='"
113
        + accessState
114
        + '\''
115
        + ", "
116
        + "description='"
117
        + description
118
        + '\''
119
        + ", "
120
        + "customInstructions='"
121
        + customInstructions
122
        + '\''
123
        + ", "
124
        + "longText='"
125
        + longText
126
        + '\''
127
        + ", "
128
        + "basicText='"
129
        + basicText
130
        + '\''
131
        + "}";
132
  }
133

134
  public static class Builder {
135

136
    protected EnumWrapper<AiStudioAgentExtractResponseTypeField> type;
137

138
    protected final String accessState;
139

140
    protected final String description;
141

142
    protected String customInstructions;
143

144
    protected AiStudioAgentLongTextToolResponse longText;
145

146
    protected AiStudioAgentBasicTextToolResponse basicText;
147

NEW
148
    public Builder(String accessState, String description) {
×
149
      this.accessState = accessState;
×
150
      this.description = description;
×
151
      this.type =
×
152
          new EnumWrapper<AiStudioAgentExtractResponseTypeField>(
153
              AiStudioAgentExtractResponseTypeField.AI_AGENT_EXTRACT);
154
    }
×
155

156
    public Builder type(AiStudioAgentExtractResponseTypeField type) {
157
      this.type = new EnumWrapper<AiStudioAgentExtractResponseTypeField>(type);
×
158
      return this;
×
159
    }
160

161
    public Builder type(EnumWrapper<AiStudioAgentExtractResponseTypeField> type) {
UNCOV
162
      this.type = type;
×
163
      return this;
×
164
    }
165

166
    public Builder customInstructions(String customInstructions) {
167
      this.customInstructions = customInstructions;
×
168
      return this;
×
169
    }
170

171
    public Builder longText(AiStudioAgentLongTextToolResponse longText) {
UNCOV
172
      this.longText = longText;
×
173
      return this;
×
174
    }
175

176
    public Builder basicText(AiStudioAgentBasicTextToolResponse basicText) {
UNCOV
177
      this.basicText = basicText;
×
178
      return this;
×
179
    }
180

181
    public AiStudioAgentExtractResponse build() {
182
      return new AiStudioAgentExtractResponse(this);
×
183
    }
184
  }
185
}
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