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

box / box-java-sdk-gen / #294

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

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 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/aistudioagentextractresponse/AiStudioAgentExtractResponse.java
1
package com.box.sdkgen.schemas.aistudioagentextractresponse;
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.aistudioagentbasictexttoolresponse.AiStudioAgentBasicTextToolResponse;
7
import com.box.sdkgen.schemas.aistudioagentlongtexttoolresponse.AiStudioAgentLongTextToolResponse;
8
import com.box.sdkgen.serialization.json.EnumWrapper;
9
import com.fasterxml.jackson.annotation.JsonFilter;
10
import com.fasterxml.jackson.annotation.JsonProperty;
11
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
12
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
13
import java.util.Objects;
14

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

18
  @JsonDeserialize(
19
      using =
20
          AiStudioAgentExtractResponseTypeField.AiStudioAgentExtractResponseTypeFieldDeserializer
21
              .class)
22
  @JsonSerialize(
23
      using =
24
          AiStudioAgentExtractResponseTypeField.AiStudioAgentExtractResponseTypeFieldSerializer
25
              .class)
26
  protected EnumWrapper<AiStudioAgentExtractResponseTypeField> 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("long_text")
38
  protected AiStudioAgentLongTextToolResponse longText;
39

40
  @JsonProperty("basic_text")
41
  protected AiStudioAgentBasicTextToolResponse basicText;
42

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

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

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

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

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

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

81
  public AiStudioAgentLongTextToolResponse getLongText() {
UNCOV
82
    return longText;
×
83
  }
84

85
  public AiStudioAgentBasicTextToolResponse getBasicText() {
86
    return basicText;
×
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
    AiStudioAgentExtractResponse casted = (AiStudioAgentExtractResponse) o;
×
UNCOV
98
    return Objects.equals(type, casted.type)
×
UNCOV
99
        && Objects.equals(accessState, casted.accessState)
×
UNCOV
100
        && Objects.equals(description, casted.description)
×
UNCOV
101
        && Objects.equals(customInstructions, casted.customInstructions)
×
102
        && Objects.equals(longText, casted.longText)
×
UNCOV
103
        && Objects.equals(basicText, casted.basicText);
×
104
  }
105

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

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

140
  public static class Builder extends NullableFieldTracker {
141

142
    protected EnumWrapper<AiStudioAgentExtractResponseTypeField> type;
143

144
    protected final String accessState;
145

146
    protected final String description;
147

148
    protected String customInstructions;
149

150
    protected AiStudioAgentLongTextToolResponse longText;
151

152
    protected AiStudioAgentBasicTextToolResponse basicText;
153

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

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

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

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

179
    public Builder longText(AiStudioAgentLongTextToolResponse longText) {
UNCOV
180
      this.longText = longText;
×
UNCOV
181
      return this;
×
182
    }
183

184
    public Builder basicText(AiStudioAgentBasicTextToolResponse basicText) {
UNCOV
185
      this.basicText = basicText;
×
UNCOV
186
      return this;
×
187
    }
188

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