• 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/aistudioagenttextgen/AiStudioAgentTextGen.java
1
package com.box.sdkgen.schemas.aistudioagenttextgen;
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.aistudioagentbasicgentool.AiStudioAgentBasicGenTool;
7
import com.box.sdkgen.serialization.json.EnumWrapper;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.List;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class AiStudioAgentTextGen extends SerializableObject {
17

18
  @JsonDeserialize(
19
      using = AiStudioAgentTextGenTypeField.AiStudioAgentTextGenTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using = AiStudioAgentTextGenTypeField.AiStudioAgentTextGenTypeFieldSerializer.class)
22
  protected EnumWrapper<AiStudioAgentTextGenTypeField> type;
23

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

27
  protected final String description;
28

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

33
  @JsonProperty("suggested_questions")
34
  protected List<String> suggestedQuestions;
35

36
  @JsonProperty("basic_gen")
37
  protected AiStudioAgentBasicGenTool basicGen;
38

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

50
  protected AiStudioAgentTextGen(Builder builder) {
51
    super();
×
52
    this.type = builder.type;
×
53
    this.accessState = builder.accessState;
×
54
    this.description = builder.description;
×
55
    this.customInstructions = builder.customInstructions;
×
56
    this.suggestedQuestions = builder.suggestedQuestions;
×
57
    this.basicGen = builder.basicGen;
×
58
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
59
  }
×
60

61
  public EnumWrapper<AiStudioAgentTextGenTypeField> getType() {
62
    return type;
×
63
  }
64

65
  public String getAccessState() {
66
    return accessState;
×
67
  }
68

69
  public String getDescription() {
70
    return description;
×
71
  }
72

73
  public String getCustomInstructions() {
74
    return customInstructions;
×
75
  }
76

77
  public List<String> getSuggestedQuestions() {
78
    return suggestedQuestions;
×
79
  }
80

81
  public AiStudioAgentBasicGenTool getBasicGen() {
82
    return basicGen;
×
83
  }
84

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

102
  @Override
103
  public int hashCode() {
104
    return Objects.hash(
×
105
        type, accessState, description, customInstructions, suggestedQuestions, basicGen);
106
  }
107

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

137
  public static class Builder extends NullableFieldTracker {
138

139
    protected EnumWrapper<AiStudioAgentTextGenTypeField> type;
140

141
    protected final String accessState;
142

143
    protected final String description;
144

145
    protected String customInstructions;
146

147
    protected List<String> suggestedQuestions;
148

149
    protected AiStudioAgentBasicGenTool basicGen;
150

151
    public Builder(String accessState, String description) {
152
      super();
×
153
      this.accessState = accessState;
×
154
      this.description = description;
×
155
      this.type =
×
156
          new EnumWrapper<AiStudioAgentTextGenTypeField>(
157
              AiStudioAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
158
    }
×
159

160
    public Builder type(AiStudioAgentTextGenTypeField type) {
161
      this.type = new EnumWrapper<AiStudioAgentTextGenTypeField>(type);
×
162
      return this;
×
163
    }
164

165
    public Builder type(EnumWrapper<AiStudioAgentTextGenTypeField> type) {
166
      this.type = type;
×
167
      return this;
×
168
    }
169

170
    public Builder customInstructions(String customInstructions) {
171
      this.customInstructions = customInstructions;
×
172
      this.markNullableFieldAsSet("custom_instructions");
×
173
      return this;
×
174
    }
175

176
    public Builder suggestedQuestions(List<String> suggestedQuestions) {
177
      this.suggestedQuestions = suggestedQuestions;
×
178
      return this;
×
179
    }
180

181
    public Builder basicGen(AiStudioAgentBasicGenTool basicGen) {
182
      this.basicGen = basicGen;
×
183
      return this;
×
184
    }
185

186
    public AiStudioAgentTextGen build() {
187
      return new AiStudioAgentTextGen(this);
×
188
    }
189
  }
190
}
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