• 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/aistudioagentextract/AiStudioAgentExtract.java
1
package com.box.sdkgen.schemas.aistudioagentextract;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.aistudioagentbasictexttool.AiStudioAgentBasicTextTool;
5
import com.box.sdkgen.schemas.aistudioagentlongtexttool.AiStudioAgentLongTextTool;
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 AiStudioAgentExtract extends SerializableObject {
13

14
  @JsonDeserialize(
15
      using = AiStudioAgentExtractTypeField.AiStudioAgentExtractTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using = AiStudioAgentExtractTypeField.AiStudioAgentExtractTypeFieldSerializer.class)
18
  protected EnumWrapper<AiStudioAgentExtractTypeField> type;
19

20
  @JsonProperty("access_state")
21
  protected final String accessState;
22

23
  protected final String description;
24

25
  @JsonProperty("custom_instructions")
26
  protected String customInstructions;
27

28
  @JsonProperty("long_text")
29
  protected AiStudioAgentLongTextTool longText;
30

31
  @JsonProperty("basic_text")
32
  protected AiStudioAgentBasicTextTool basicText;
33

34
  public AiStudioAgentExtract(
35
      @JsonProperty("access_state") String accessState,
36
      @JsonProperty("description") String description) {
37
    super();
×
38
    this.accessState = accessState;
×
39
    this.description = description;
×
40
    this.type =
×
41
        new EnumWrapper<AiStudioAgentExtractTypeField>(
42
            AiStudioAgentExtractTypeField.AI_AGENT_EXTRACT);
43
  }
×
44

45
  protected AiStudioAgentExtract(Builder builder) {
46
    super();
×
47
    this.type = builder.type;
×
48
    this.accessState = builder.accessState;
×
49
    this.description = builder.description;
×
50
    this.customInstructions = builder.customInstructions;
×
51
    this.longText = builder.longText;
×
52
    this.basicText = builder.basicText;
×
53
  }
×
54

55
  public EnumWrapper<AiStudioAgentExtractTypeField> getType() {
56
    return type;
×
57
  }
58

59
  public String getAccessState() {
60
    return accessState;
×
61
  }
62

63
  public String getDescription() {
64
    return description;
×
65
  }
66

67
  public String getCustomInstructions() {
68
    return customInstructions;
×
69
  }
70

71
  public AiStudioAgentLongTextTool getLongText() {
72
    return longText;
×
73
  }
74

75
  public AiStudioAgentBasicTextTool getBasicText() {
76
    return basicText;
×
77
  }
78

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

96
  @Override
97
  public int hashCode() {
98
    return Objects.hash(type, accessState, description, customInstructions, longText, basicText);
×
99
  }
100

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

130
  public static class Builder {
131

132
    protected EnumWrapper<AiStudioAgentExtractTypeField> type;
133

134
    protected final String accessState;
135

136
    protected final String description;
137

138
    protected String customInstructions;
139

140
    protected AiStudioAgentLongTextTool longText;
141

142
    protected AiStudioAgentBasicTextTool basicText;
143

NEW
144
    public Builder(String accessState, String description) {
×
145
      this.accessState = accessState;
×
146
      this.description = description;
×
147
      this.type =
×
148
          new EnumWrapper<AiStudioAgentExtractTypeField>(
149
              AiStudioAgentExtractTypeField.AI_AGENT_EXTRACT);
150
    }
×
151

152
    public Builder type(AiStudioAgentExtractTypeField type) {
153
      this.type = new EnumWrapper<AiStudioAgentExtractTypeField>(type);
×
154
      return this;
×
155
    }
156

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

162
    public Builder customInstructions(String customInstructions) {
163
      this.customInstructions = customInstructions;
×
164
      return this;
×
165
    }
166

167
    public Builder longText(AiStudioAgentLongTextTool longText) {
168
      this.longText = longText;
×
169
      return this;
×
170
    }
171

172
    public Builder basicText(AiStudioAgentBasicTextTool basicText) {
173
      this.basicText = basicText;
×
174
      return this;
×
175
    }
176

177
    public AiStudioAgentExtract build() {
178
      return new AiStudioAgentExtract(this);
×
179
    }
180
  }
181
}
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