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

box / box-java-sdk-gen / #293

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

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/aistudioagentextract/AiStudioAgentExtract.java
1
package com.box.sdkgen.schemas.aistudioagentextract;
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.aistudioagentbasictexttool.AiStudioAgentBasicTextTool;
7
import com.box.sdkgen.schemas.aistudioagentlongtexttool.AiStudioAgentLongTextTool;
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 AiStudioAgentExtract extends SerializableObject {
17

18
  @JsonDeserialize(
19
      using = AiStudioAgentExtractTypeField.AiStudioAgentExtractTypeFieldDeserializer.class)
20
  @JsonSerialize(
21
      using = AiStudioAgentExtractTypeField.AiStudioAgentExtractTypeFieldSerializer.class)
22
  protected EnumWrapper<AiStudioAgentExtractTypeField> type;
23

24
  @JsonProperty("access_state")
25
  protected final String accessState;
26

27
  protected final String description;
28

29
  @JsonProperty("custom_instructions")
30
  @Nullable
31
  protected String customInstructions;
32

33
  @JsonProperty("long_text")
34
  protected AiStudioAgentLongTextTool longText;
35

36
  @JsonProperty("basic_text")
37
  protected AiStudioAgentBasicTextTool basicText;
38

39
  public AiStudioAgentExtract(
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<AiStudioAgentExtractTypeField>(
47
            AiStudioAgentExtractTypeField.AI_AGENT_EXTRACT);
48
  }
×
49

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

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

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

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

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

77
  public AiStudioAgentLongTextTool getLongText() {
UNCOV
78
    return longText;
×
79
  }
80

81
  public AiStudioAgentBasicTextTool getBasicText() {
82
    return basicText;
×
83
  }
84

85
  @Override
86
  public boolean equals(Object o) {
87
    if (this == o) {
×
88
      return true;
×
89
    }
90
    if (o == null || getClass() != o.getClass()) {
×
91
      return false;
×
92
    }
93
    AiStudioAgentExtract casted = (AiStudioAgentExtract) o;
×
UNCOV
94
    return Objects.equals(type, casted.type)
×
UNCOV
95
        && Objects.equals(accessState, casted.accessState)
×
UNCOV
96
        && Objects.equals(description, casted.description)
×
UNCOV
97
        && Objects.equals(customInstructions, casted.customInstructions)
×
98
        && Objects.equals(longText, casted.longText)
×
UNCOV
99
        && Objects.equals(basicText, casted.basicText);
×
100
  }
101

102
  @Override
103
  public int hashCode() {
UNCOV
104
    return Objects.hash(type, accessState, description, customInstructions, longText, basicText);
×
105
  }
106

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

136
  public static class Builder extends NullableFieldTracker {
137

138
    protected EnumWrapper<AiStudioAgentExtractTypeField> type;
139

140
    protected final String accessState;
141

142
    protected final String description;
143

144
    protected String customInstructions;
145

146
    protected AiStudioAgentLongTextTool longText;
147

148
    protected AiStudioAgentBasicTextTool basicText;
149

150
    public Builder(String accessState, String description) {
UNCOV
151
      super();
×
UNCOV
152
      this.accessState = accessState;
×
153
      this.description = description;
×
154
      this.type =
×
155
          new EnumWrapper<AiStudioAgentExtractTypeField>(
156
              AiStudioAgentExtractTypeField.AI_AGENT_EXTRACT);
UNCOV
157
    }
×
158

159
    public Builder type(AiStudioAgentExtractTypeField type) {
UNCOV
160
      this.type = new EnumWrapper<AiStudioAgentExtractTypeField>(type);
×
UNCOV
161
      return this;
×
162
    }
163

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

169
    public Builder customInstructions(String customInstructions) {
UNCOV
170
      this.customInstructions = customInstructions;
×
UNCOV
171
      this.markNullableFieldAsSet("custom_instructions");
×
UNCOV
172
      return this;
×
173
    }
174

175
    public Builder longText(AiStudioAgentLongTextTool longText) {
UNCOV
176
      this.longText = longText;
×
UNCOV
177
      return this;
×
178
    }
179

180
    public Builder basicText(AiStudioAgentBasicTextTool basicText) {
UNCOV
181
      this.basicText = basicText;
×
UNCOV
182
      return this;
×
183
    }
184

185
    public AiStudioAgentExtract build() {
UNCOV
186
      return new AiStudioAgentExtract(this);
×
187
    }
188
  }
189
}
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