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

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.aistudioagentbasicgentoolresponse.AiStudioAgentBasicGenToolResponse;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
public class AiStudioAgentTextGenResponse extends SerializableObject {
12

13
  @JsonDeserialize(
14
      using =
15
          AiStudioAgentTextGenResponseTypeField.AiStudioAgentTextGenResponseTypeFieldDeserializer
16
              .class)
17
  @JsonSerialize(
18
      using =
19
          AiStudioAgentTextGenResponseTypeField.AiStudioAgentTextGenResponseTypeFieldSerializer
20
              .class)
21
  protected EnumWrapper<AiStudioAgentTextGenResponseTypeField> type;
22

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

26
  protected final String description;
27

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

31
  @JsonProperty("basic_gen")
32
  protected AiStudioAgentBasicGenToolResponse basicGen;
33

34
  public AiStudioAgentTextGenResponse(
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<AiStudioAgentTextGenResponseTypeField>(
42
            AiStudioAgentTextGenResponseTypeField.AI_AGENT_TEXT_GEN);
43
  }
×
44

45
  protected AiStudioAgentTextGenResponse(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.basicGen = builder.basicGen;
×
52
  }
×
53

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

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

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

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

70
  public AiStudioAgentBasicGenToolResponse getBasicGen() {
71
    return basicGen;
×
72
  }
73

74
  @Override
75
  public boolean equals(Object o) {
76
    if (this == o) {
×
77
      return true;
×
78
    }
79
    if (o == null || getClass() != o.getClass()) {
×
80
      return false;
×
81
    }
82
    AiStudioAgentTextGenResponse casted = (AiStudioAgentTextGenResponse) o;
×
83
    return Objects.equals(type, casted.type)
×
84
        && Objects.equals(accessState, casted.accessState)
×
85
        && Objects.equals(description, casted.description)
×
86
        && Objects.equals(customInstructions, casted.customInstructions)
×
87
        && Objects.equals(basicGen, casted.basicGen);
×
88
  }
89

90
  @Override
91
  public int hashCode() {
92
    return Objects.hash(type, accessState, description, customInstructions, basicGen);
×
93
  }
94

95
  @Override
96
  public String toString() {
97
    return "AiStudioAgentTextGenResponse{"
×
98
        + "type='"
99
        + type
100
        + '\''
101
        + ", "
102
        + "accessState='"
103
        + accessState
104
        + '\''
105
        + ", "
106
        + "description='"
107
        + description
108
        + '\''
109
        + ", "
110
        + "customInstructions='"
111
        + customInstructions
112
        + '\''
113
        + ", "
114
        + "basicGen='"
115
        + basicGen
116
        + '\''
117
        + "}";
118
  }
119

120
  public static class Builder {
121

122
    protected EnumWrapper<AiStudioAgentTextGenResponseTypeField> type;
123

124
    protected final String accessState;
125

126
    protected final String description;
127

128
    protected String customInstructions;
129

130
    protected AiStudioAgentBasicGenToolResponse basicGen;
131

NEW
132
    public Builder(String accessState, String description) {
×
133
      this.accessState = accessState;
×
134
      this.description = description;
×
135
      this.type =
×
136
          new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(
137
              AiStudioAgentTextGenResponseTypeField.AI_AGENT_TEXT_GEN);
138
    }
×
139

140
    public Builder type(AiStudioAgentTextGenResponseTypeField type) {
141
      this.type = new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(type);
×
142
      return this;
×
143
    }
144

145
    public Builder type(EnumWrapper<AiStudioAgentTextGenResponseTypeField> type) {
UNCOV
146
      this.type = type;
×
147
      return this;
×
148
    }
149

150
    public Builder customInstructions(String customInstructions) {
151
      this.customInstructions = customInstructions;
×
152
      return this;
×
153
    }
154

155
    public Builder basicGen(AiStudioAgentBasicGenToolResponse basicGen) {
UNCOV
156
      this.basicGen = basicGen;
×
157
      return this;
×
158
    }
159

160
    public AiStudioAgentTextGenResponse build() {
161
      return new AiStudioAgentTextGenResponse(this);
×
162
    }
163
  }
164
}
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