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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

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.Objects;
13

14
@JsonFilter("nullablePropertyFilter")
15
public class AiStudioAgentTextGenResponse extends SerializableObject {
16

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

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

30
  protected final String description;
31

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

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

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

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

60
  public EnumWrapper<AiStudioAgentTextGenResponseTypeField> getType() {
UNCOV
61
    return type;
×
62
  }
63

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

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

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

76
  public AiStudioAgentBasicGenToolResponse getBasicGen() {
77
    return basicGen;
×
78
  }
79

80
  @Override
81
  public boolean equals(Object o) {
82
    if (this == o) {
×
83
      return true;
×
84
    }
85
    if (o == null || getClass() != o.getClass()) {
×
86
      return false;
×
87
    }
UNCOV
88
    AiStudioAgentTextGenResponse casted = (AiStudioAgentTextGenResponse) o;
×
UNCOV
89
    return Objects.equals(type, casted.type)
×
UNCOV
90
        && Objects.equals(accessState, casted.accessState)
×
UNCOV
91
        && Objects.equals(description, casted.description)
×
92
        && Objects.equals(customInstructions, casted.customInstructions)
×
UNCOV
93
        && Objects.equals(basicGen, casted.basicGen);
×
94
  }
95

96
  @Override
97
  public int hashCode() {
UNCOV
98
    return Objects.hash(type, accessState, description, customInstructions, basicGen);
×
99
  }
100

101
  @Override
102
  public String toString() {
UNCOV
103
    return "AiStudioAgentTextGenResponse{"
×
104
        + "type='"
105
        + type
106
        + '\''
107
        + ", "
108
        + "accessState='"
109
        + accessState
110
        + '\''
111
        + ", "
112
        + "description='"
113
        + description
114
        + '\''
115
        + ", "
116
        + "customInstructions='"
117
        + customInstructions
118
        + '\''
119
        + ", "
120
        + "basicGen='"
121
        + basicGen
122
        + '\''
123
        + "}";
124
  }
125

126
  public static class Builder extends NullableFieldTracker {
127

128
    protected EnumWrapper<AiStudioAgentTextGenResponseTypeField> type;
129

130
    protected final String accessState;
131

132
    protected final String description;
133

134
    protected String customInstructions;
135

136
    protected AiStudioAgentBasicGenToolResponse basicGen;
137

138
    public Builder(String accessState, String description) {
UNCOV
139
      super();
×
UNCOV
140
      this.accessState = accessState;
×
141
      this.description = description;
×
142
      this.type =
×
143
          new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(
144
              AiStudioAgentTextGenResponseTypeField.AI_AGENT_TEXT_GEN);
UNCOV
145
    }
×
146

147
    public Builder type(AiStudioAgentTextGenResponseTypeField type) {
UNCOV
148
      this.type = new EnumWrapper<AiStudioAgentTextGenResponseTypeField>(type);
×
UNCOV
149
      return this;
×
150
    }
151

152
    public Builder type(EnumWrapper<AiStudioAgentTextGenResponseTypeField> type) {
UNCOV
153
      this.type = type;
×
UNCOV
154
      return this;
×
155
    }
156

157
    public Builder customInstructions(String customInstructions) {
UNCOV
158
      this.customInstructions = customInstructions;
×
UNCOV
159
      this.markNullableFieldAsSet("custom_instructions");
×
UNCOV
160
      return this;
×
161
    }
162

163
    public Builder basicGen(AiStudioAgentBasicGenToolResponse basicGen) {
UNCOV
164
      this.basicGen = basicGen;
×
UNCOV
165
      return this;
×
166
    }
167

168
    public AiStudioAgentTextGenResponse build() {
UNCOV
169
      return new AiStudioAgentTextGenResponse(this);
×
170
    }
171
  }
172
}
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