• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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
/** The AI agent to be used to generate text. */
16
@JsonFilter("nullablePropertyFilter")
17
public class AiStudioAgentTextGenResponse extends SerializableObject {
18

19
  /** The type of AI agent used for generating text. */
20
  @JsonDeserialize(
21
      using =
22
          AiStudioAgentTextGenResponseTypeField.AiStudioAgentTextGenResponseTypeFieldDeserializer
23
              .class)
24
  @JsonSerialize(
25
      using =
26
          AiStudioAgentTextGenResponseTypeField.AiStudioAgentTextGenResponseTypeFieldSerializer
27
              .class)
28
  protected EnumWrapper<AiStudioAgentTextGenResponseTypeField> type;
29

30
  /** The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */
31
  @JsonProperty("access_state")
32
  protected final String accessState;
33

34
  /** The description of the AI agent. */
35
  protected final String description;
36

37
  /** Custom instructions for the AI agent. */
38
  @JsonProperty("custom_instructions")
39
  @Nullable
40
  protected String customInstructions;
41

42
  /**
43
   * Suggested questions for the AI agent. If null, suggested question will be generated. If empty,
44
   * no suggested questions will be displayed.
45
   */
46
  @JsonProperty("suggested_questions")
47
  protected List<String> suggestedQuestions;
48

49
  @JsonProperty("basic_gen")
50
  protected AiStudioAgentBasicGenToolResponse basicGen;
51

52
  public AiStudioAgentTextGenResponse(
53
      @JsonProperty("access_state") String accessState,
54
      @JsonProperty("description") String description) {
55
    super();
×
56
    this.accessState = accessState;
×
57
    this.description = description;
×
58
    this.type =
×
59
        new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(
60
            AiStudioAgentTextGenResponseTypeField.AI_AGENT_TEXT_GEN);
61
  }
×
62

63
  protected AiStudioAgentTextGenResponse(Builder builder) {
64
    super();
×
65
    this.type = builder.type;
×
66
    this.accessState = builder.accessState;
×
67
    this.description = builder.description;
×
68
    this.customInstructions = builder.customInstructions;
×
69
    this.suggestedQuestions = builder.suggestedQuestions;
×
70
    this.basicGen = builder.basicGen;
×
71
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
72
  }
×
73

74
  public EnumWrapper<AiStudioAgentTextGenResponseTypeField> getType() {
75
    return type;
×
76
  }
77

78
  public String getAccessState() {
79
    return accessState;
×
80
  }
81

82
  public String getDescription() {
83
    return description;
×
84
  }
85

86
  public String getCustomInstructions() {
87
    return customInstructions;
×
88
  }
89

90
  public List<String> getSuggestedQuestions() {
91
    return suggestedQuestions;
×
92
  }
93

94
  public AiStudioAgentBasicGenToolResponse getBasicGen() {
95
    return basicGen;
×
96
  }
97

98
  @Override
99
  public boolean equals(Object o) {
100
    if (this == o) {
×
101
      return true;
×
102
    }
103
    if (o == null || getClass() != o.getClass()) {
×
104
      return false;
×
105
    }
106
    AiStudioAgentTextGenResponse casted = (AiStudioAgentTextGenResponse) o;
×
107
    return Objects.equals(type, casted.type)
×
108
        && Objects.equals(accessState, casted.accessState)
×
109
        && Objects.equals(description, casted.description)
×
110
        && Objects.equals(customInstructions, casted.customInstructions)
×
111
        && Objects.equals(suggestedQuestions, casted.suggestedQuestions)
×
112
        && Objects.equals(basicGen, casted.basicGen);
×
113
  }
114

115
  @Override
116
  public int hashCode() {
117
    return Objects.hash(
×
118
        type, accessState, description, customInstructions, suggestedQuestions, basicGen);
119
  }
120

121
  @Override
122
  public String toString() {
123
    return "AiStudioAgentTextGenResponse{"
×
124
        + "type='"
125
        + type
126
        + '\''
127
        + ", "
128
        + "accessState='"
129
        + accessState
130
        + '\''
131
        + ", "
132
        + "description='"
133
        + description
134
        + '\''
135
        + ", "
136
        + "customInstructions='"
137
        + customInstructions
138
        + '\''
139
        + ", "
140
        + "suggestedQuestions='"
141
        + suggestedQuestions
142
        + '\''
143
        + ", "
144
        + "basicGen='"
145
        + basicGen
146
        + '\''
147
        + "}";
148
  }
149

150
  public static class Builder extends NullableFieldTracker {
151

152
    protected EnumWrapper<AiStudioAgentTextGenResponseTypeField> type;
153

154
    protected final String accessState;
155

156
    protected final String description;
157

158
    protected String customInstructions;
159

160
    protected List<String> suggestedQuestions;
161

162
    protected AiStudioAgentBasicGenToolResponse basicGen;
163

164
    public Builder(String accessState, String description) {
165
      super();
×
166
      this.accessState = accessState;
×
167
      this.description = description;
×
168
      this.type =
×
169
          new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(
170
              AiStudioAgentTextGenResponseTypeField.AI_AGENT_TEXT_GEN);
171
    }
×
172

173
    public Builder type(AiStudioAgentTextGenResponseTypeField type) {
174
      this.type = new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(type);
×
175
      return this;
×
176
    }
177

178
    public Builder type(EnumWrapper<AiStudioAgentTextGenResponseTypeField> type) {
179
      this.type = type;
×
180
      return this;
×
181
    }
182

183
    public Builder customInstructions(String customInstructions) {
184
      this.customInstructions = customInstructions;
×
185
      this.markNullableFieldAsSet("custom_instructions");
×
186
      return this;
×
187
    }
188

189
    public Builder suggestedQuestions(List<String> suggestedQuestions) {
190
      this.suggestedQuestions = suggestedQuestions;
×
191
      return this;
×
192
    }
193

194
    public Builder basicGen(AiStudioAgentBasicGenToolResponse basicGen) {
195
      this.basicGen = basicGen;
×
196
      return this;
×
197
    }
198

199
    public AiStudioAgentTextGenResponse build() {
200
      return new AiStudioAgentTextGenResponse(this);
×
201
    }
202
  }
203
}
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