• 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

56.41
/src/main/java/com/box/sdkgen/schemas/aiagentextractstructured/AiAgentExtractStructured.java
1
package com.box.sdkgen.schemas.aiagentextractstructured;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.schemas.aiagentbasictexttool.AiAgentBasicTextTool;
6
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextTool;
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
/** The AI agent to be used for structured extraction. */
15
@JsonFilter("nullablePropertyFilter")
16
public class AiAgentExtractStructured extends SerializableObject {
17

18
  /** The type of AI agent to be used for extraction. */
19
  @JsonDeserialize(
20
      using = AiAgentExtractStructuredTypeField.AiAgentExtractStructuredTypeFieldDeserializer.class)
21
  @JsonSerialize(
22
      using = AiAgentExtractStructuredTypeField.AiAgentExtractStructuredTypeFieldSerializer.class)
23
  protected EnumWrapper<AiAgentExtractStructuredTypeField> type;
24

25
  @JsonProperty("long_text")
26
  protected AiAgentLongTextTool longText;
27

28
  @JsonProperty("basic_text")
29
  protected AiAgentBasicTextTool basicText;
30

31
  @JsonProperty("basic_image")
32
  protected AiAgentBasicTextTool basicImage;
33

34
  public AiAgentExtractStructured() {
35
    super();
1✔
36
    this.type =
1✔
37
        new EnumWrapper<AiAgentExtractStructuredTypeField>(
38
            AiAgentExtractStructuredTypeField.AI_AGENT_EXTRACT_STRUCTURED);
39
  }
1✔
40

41
  protected AiAgentExtractStructured(Builder builder) {
42
    super();
1✔
43
    this.type = builder.type;
1✔
44
    this.longText = builder.longText;
1✔
45
    this.basicText = builder.basicText;
1✔
46
    this.basicImage = builder.basicImage;
1✔
47
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
48
  }
1✔
49

50
  public EnumWrapper<AiAgentExtractStructuredTypeField> getType() {
51
    return type;
1✔
52
  }
53

54
  public AiAgentLongTextTool getLongText() {
55
    return longText;
1✔
56
  }
57

58
  public AiAgentBasicTextTool getBasicText() {
59
    return basicText;
1✔
60
  }
61

62
  public AiAgentBasicTextTool getBasicImage() {
63
    return basicImage;
1✔
64
  }
65

66
  @Override
67
  public boolean equals(Object o) {
68
    if (this == o) {
×
69
      return true;
×
70
    }
71
    if (o == null || getClass() != o.getClass()) {
×
72
      return false;
×
73
    }
74
    AiAgentExtractStructured casted = (AiAgentExtractStructured) o;
×
75
    return Objects.equals(type, casted.type)
×
76
        && Objects.equals(longText, casted.longText)
×
77
        && Objects.equals(basicText, casted.basicText)
×
78
        && Objects.equals(basicImage, casted.basicImage);
×
79
  }
80

81
  @Override
82
  public int hashCode() {
83
    return Objects.hash(type, longText, basicText, basicImage);
×
84
  }
85

86
  @Override
87
  public String toString() {
88
    return "AiAgentExtractStructured{"
×
89
        + "type='"
90
        + type
91
        + '\''
92
        + ", "
93
        + "longText='"
94
        + longText
95
        + '\''
96
        + ", "
97
        + "basicText='"
98
        + basicText
99
        + '\''
100
        + ", "
101
        + "basicImage='"
102
        + basicImage
103
        + '\''
104
        + "}";
105
  }
106

107
  public static class Builder extends NullableFieldTracker {
108

109
    protected EnumWrapper<AiAgentExtractStructuredTypeField> type;
110

111
    protected AiAgentLongTextTool longText;
112

113
    protected AiAgentBasicTextTool basicText;
114

115
    protected AiAgentBasicTextTool basicImage;
116

117
    public Builder() {
118
      super();
1✔
119
      this.type =
1✔
120
          new EnumWrapper<AiAgentExtractStructuredTypeField>(
121
              AiAgentExtractStructuredTypeField.AI_AGENT_EXTRACT_STRUCTURED);
122
    }
1✔
123

124
    public Builder type(AiAgentExtractStructuredTypeField type) {
125
      this.type = new EnumWrapper<AiAgentExtractStructuredTypeField>(type);
×
126
      return this;
×
127
    }
128

129
    public Builder type(EnumWrapper<AiAgentExtractStructuredTypeField> type) {
130
      this.type = type;
×
131
      return this;
×
132
    }
133

134
    public Builder longText(AiAgentLongTextTool longText) {
135
      this.longText = longText;
1✔
136
      return this;
1✔
137
    }
138

139
    public Builder basicText(AiAgentBasicTextTool basicText) {
140
      this.basicText = basicText;
1✔
141
      return this;
1✔
142
    }
143

144
    public Builder basicImage(AiAgentBasicTextTool basicImage) {
145
      this.basicImage = basicImage;
×
146
      return this;
×
147
    }
148

149
    public AiAgentExtractStructured build() {
150
      return new AiAgentExtractStructured(this);
1✔
151
    }
152
  }
153
}
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