• 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/aistudioagenttextgenresponse/AiStudioAgentTextGenResponse.java
1
package com.box.sdkgen.schemas.aistudioagenttextgenresponse;
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.aistudioagentbasicgentoolresponse.AiStudioAgentBasicGenToolResponse;
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 AiStudioAgentTextGenResponse extends SerializableObject {
17

18
  @JsonDeserialize(
19
      using =
20
          AiStudioAgentTextGenResponseTypeField.AiStudioAgentTextGenResponseTypeFieldDeserializer
21
              .class)
22
  @JsonSerialize(
23
      using =
24
          AiStudioAgentTextGenResponseTypeField.AiStudioAgentTextGenResponseTypeFieldSerializer
25
              .class)
26
  protected EnumWrapper<AiStudioAgentTextGenResponseTypeField> type;
27

28
  @JsonProperty("access_state")
29
  protected final String accessState;
30

31
  protected final String description;
32

33
  @JsonProperty("custom_instructions")
34
  @Nullable
35
  protected String customInstructions;
36

37
  @JsonProperty("suggested_questions")
38
  protected List<String> suggestedQuestions;
39

40
  @JsonProperty("basic_gen")
41
  protected AiStudioAgentBasicGenToolResponse basicGen;
42

43
  public AiStudioAgentTextGenResponse(
44
      @JsonProperty("access_state") String accessState,
45
      @JsonProperty("description") String description) {
46
    super();
×
47
    this.accessState = accessState;
×
48
    this.description = description;
×
49
    this.type =
×
50
        new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(
51
            AiStudioAgentTextGenResponseTypeField.AI_AGENT_TEXT_GEN);
52
  }
×
53

54
  protected AiStudioAgentTextGenResponse(Builder builder) {
55
    super();
×
56
    this.type = builder.type;
×
57
    this.accessState = builder.accessState;
×
58
    this.description = builder.description;
×
59
    this.customInstructions = builder.customInstructions;
×
60
    this.suggestedQuestions = builder.suggestedQuestions;
×
61
    this.basicGen = builder.basicGen;
×
62
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
63
  }
×
64

65
  public EnumWrapper<AiStudioAgentTextGenResponseTypeField> getType() {
66
    return type;
×
67
  }
68

69
  public String getAccessState() {
70
    return accessState;
×
71
  }
72

73
  public String getDescription() {
74
    return description;
×
75
  }
76

77
  public String getCustomInstructions() {
78
    return customInstructions;
×
79
  }
80

81
  public List<String> getSuggestedQuestions() {
82
    return suggestedQuestions;
×
83
  }
84

85
  public AiStudioAgentBasicGenToolResponse getBasicGen() {
86
    return basicGen;
×
87
  }
88

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

106
  @Override
107
  public int hashCode() {
108
    return Objects.hash(
×
109
        type, accessState, description, customInstructions, suggestedQuestions, basicGen);
110
  }
111

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

141
  public static class Builder extends NullableFieldTracker {
142

143
    protected EnumWrapper<AiStudioAgentTextGenResponseTypeField> type;
144

145
    protected final String accessState;
146

147
    protected final String description;
148

149
    protected String customInstructions;
150

151
    protected List<String> suggestedQuestions;
152

153
    protected AiStudioAgentBasicGenToolResponse basicGen;
154

155
    public Builder(String accessState, String description) {
156
      super();
×
157
      this.accessState = accessState;
×
158
      this.description = description;
×
159
      this.type =
×
160
          new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(
161
              AiStudioAgentTextGenResponseTypeField.AI_AGENT_TEXT_GEN);
162
    }
×
163

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

169
    public Builder type(EnumWrapper<AiStudioAgentTextGenResponseTypeField> type) {
170
      this.type = type;
×
171
      return this;
×
172
    }
173

174
    public Builder customInstructions(String customInstructions) {
175
      this.customInstructions = customInstructions;
×
176
      this.markNullableFieldAsSet("custom_instructions");
×
177
      return this;
×
178
    }
179

180
    public Builder suggestedQuestions(List<String> suggestedQuestions) {
181
      this.suggestedQuestions = suggestedQuestions;
×
182
      return this;
×
183
    }
184

185
    public Builder basicGen(AiStudioAgentBasicGenToolResponse basicGen) {
186
      this.basicGen = basicGen;
×
187
      return this;
×
188
    }
189

190
    public AiStudioAgentTextGenResponse build() {
191
      return new AiStudioAgentTextGenResponse(this);
×
192
    }
193
  }
194
}
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