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

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.aistudioagentbasicgentool.AiStudioAgentBasicGenTool;
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 AiStudioAgentTextGen extends SerializableObject {
12

13
  @JsonDeserialize(
14
      using = AiStudioAgentTextGenTypeField.AiStudioAgentTextGenTypeFieldDeserializer.class)
15
  @JsonSerialize(
16
      using = AiStudioAgentTextGenTypeField.AiStudioAgentTextGenTypeFieldSerializer.class)
17
  protected EnumWrapper<AiStudioAgentTextGenTypeField> type;
18

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

22
  protected final String description;
23

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

27
  @JsonProperty("basic_gen")
28
  protected AiStudioAgentBasicGenTool basicGen;
29

30
  public AiStudioAgentTextGen(
31
      @JsonProperty("access_state") String accessState,
32
      @JsonProperty("description") String description) {
33
    super();
×
34
    this.accessState = accessState;
×
35
    this.description = description;
×
36
    this.type =
×
37
        new EnumWrapper<AiStudioAgentTextGenTypeField>(
38
            AiStudioAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
39
  }
×
40

41
  protected AiStudioAgentTextGen(Builder builder) {
42
    super();
×
43
    this.type = builder.type;
×
44
    this.accessState = builder.accessState;
×
45
    this.description = builder.description;
×
46
    this.customInstructions = builder.customInstructions;
×
47
    this.basicGen = builder.basicGen;
×
48
  }
×
49

50
  public EnumWrapper<AiStudioAgentTextGenTypeField> getType() {
51
    return type;
×
52
  }
53

54
  public String getAccessState() {
55
    return accessState;
×
56
  }
57

58
  public String getDescription() {
59
    return description;
×
60
  }
61

62
  public String getCustomInstructions() {
63
    return customInstructions;
×
64
  }
65

66
  public AiStudioAgentBasicGenTool getBasicGen() {
67
    return basicGen;
×
68
  }
69

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

86
  @Override
87
  public int hashCode() {
88
    return Objects.hash(type, accessState, description, customInstructions, basicGen);
×
89
  }
90

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

116
  public static class Builder {
117

118
    protected EnumWrapper<AiStudioAgentTextGenTypeField> type;
119

120
    protected final String accessState;
121

122
    protected final String description;
123

124
    protected String customInstructions;
125

126
    protected AiStudioAgentBasicGenTool basicGen;
127

NEW
128
    public Builder(String accessState, String description) {
×
129
      this.accessState = accessState;
×
130
      this.description = description;
×
131
      this.type =
×
132
          new EnumWrapper<AiStudioAgentTextGenTypeField>(
133
              AiStudioAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
134
    }
×
135

136
    public Builder type(AiStudioAgentTextGenTypeField type) {
137
      this.type = new EnumWrapper<AiStudioAgentTextGenTypeField>(type);
×
138
      return this;
×
139
    }
140

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

146
    public Builder customInstructions(String customInstructions) {
147
      this.customInstructions = customInstructions;
×
148
      return this;
×
149
    }
150

151
    public Builder basicGen(AiStudioAgentBasicGenTool basicGen) {
152
      this.basicGen = basicGen;
×
153
      return this;
×
154
    }
155

156
    public AiStudioAgentTextGen build() {
157
      return new AiStudioAgentTextGen(this);
×
158
    }
159
  }
160
}
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