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

19
  /** The type of AI agent used for generating text. */
20
  @JsonDeserialize(
21
      using = AiStudioAgentTextGenTypeField.AiStudioAgentTextGenTypeFieldDeserializer.class)
22
  @JsonSerialize(
23
      using = AiStudioAgentTextGenTypeField.AiStudioAgentTextGenTypeFieldSerializer.class)
24
  protected EnumWrapper<AiStudioAgentTextGenTypeField> type;
25

26
  /** The state of the AI Agent capability. Possible values are: `enabled` and `disabled`. */
27
  @JsonProperty("access_state")
28
  protected final String accessState;
29

30
  /** The description of the AI agent. */
31
  protected final String description;
32

33
  /** Custom instructions for the AI agent. */
34
  @JsonProperty("custom_instructions")
35
  @Nullable
36
  protected String customInstructions;
37

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

45
  @JsonProperty("basic_gen")
46
  protected AiStudioAgentBasicGenTool basicGen;
47

48
  public AiStudioAgentTextGen(
49
      @JsonProperty("access_state") String accessState,
50
      @JsonProperty("description") String description) {
51
    super();
×
52
    this.accessState = accessState;
×
53
    this.description = description;
×
54
    this.type =
×
55
        new EnumWrapper<AiStudioAgentTextGenTypeField>(
56
            AiStudioAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
57
  }
×
58

59
  protected AiStudioAgentTextGen(Builder builder) {
60
    super();
×
61
    this.type = builder.type;
×
62
    this.accessState = builder.accessState;
×
63
    this.description = builder.description;
×
64
    this.customInstructions = builder.customInstructions;
×
65
    this.suggestedQuestions = builder.suggestedQuestions;
×
66
    this.basicGen = builder.basicGen;
×
67
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
68
  }
×
69

70
  public EnumWrapper<AiStudioAgentTextGenTypeField> getType() {
71
    return type;
×
72
  }
73

74
  public String getAccessState() {
75
    return accessState;
×
76
  }
77

78
  public String getDescription() {
79
    return description;
×
80
  }
81

82
  public String getCustomInstructions() {
83
    return customInstructions;
×
84
  }
85

86
  public List<String> getSuggestedQuestions() {
87
    return suggestedQuestions;
×
88
  }
89

90
  public AiStudioAgentBasicGenTool getBasicGen() {
91
    return basicGen;
×
92
  }
93

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

111
  @Override
112
  public int hashCode() {
113
    return Objects.hash(
×
114
        type, accessState, description, customInstructions, suggestedQuestions, basicGen);
115
  }
116

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

146
  public static class Builder extends NullableFieldTracker {
147

148
    protected EnumWrapper<AiStudioAgentTextGenTypeField> type;
149

150
    protected final String accessState;
151

152
    protected final String description;
153

154
    protected String customInstructions;
155

156
    protected List<String> suggestedQuestions;
157

158
    protected AiStudioAgentBasicGenTool basicGen;
159

160
    public Builder(String accessState, String description) {
161
      super();
×
162
      this.accessState = accessState;
×
163
      this.description = description;
×
164
      this.type =
×
165
          new EnumWrapper<AiStudioAgentTextGenTypeField>(
166
              AiStudioAgentTextGenTypeField.AI_AGENT_TEXT_GEN);
167
    }
×
168

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

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

179
    public Builder customInstructions(String customInstructions) {
180
      this.customInstructions = customInstructions;
×
181
      this.markNullableFieldAsSet("custom_instructions");
×
182
      return this;
×
183
    }
184

185
    public Builder suggestedQuestions(List<String> suggestedQuestions) {
186
      this.suggestedQuestions = suggestedQuestions;
×
187
      return this;
×
188
    }
189

190
    public Builder basicGen(AiStudioAgentBasicGenTool basicGen) {
191
      this.basicGen = basicGen;
×
192
      return this;
×
193
    }
194

195
    public AiStudioAgentTextGen build() {
196
      return new AiStudioAgentTextGen(this);
×
197
    }
198
  }
199
}
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