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

box / box-java-sdk-gen / #183

03 Jun 2025 09:42AM UTC coverage: 34.779% (-0.9%) from 35.631%
#183

Pull #326

github

web-flow
Merge b909d9ac7 into 28f2ec7f8
Pull Request #326: chore: Release Java SDK to Maven Central (box/box-codegen#735)

15779 of 45369 relevant lines covered (34.78%)

0.35 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/aiagentextractstructured/AiAgentExtractStructured.java
1
package com.box.sdkgen.schemas.aiagentextractstructured;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.schemas.aiagentbasictexttool.AiAgentBasicTextTool;
5
import com.box.sdkgen.schemas.aiagentlongtexttool.AiAgentLongTextTool;
6
import com.box.sdkgen.serialization.json.EnumWrapper;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
public class AiAgentExtractStructured extends SerializableObject {
13

14
  @JsonDeserialize(
15
      using = AiAgentExtractStructuredTypeField.AiAgentExtractStructuredTypeFieldDeserializer.class)
16
  @JsonSerialize(
17
      using = AiAgentExtractStructuredTypeField.AiAgentExtractStructuredTypeFieldSerializer.class)
18
  protected EnumWrapper<AiAgentExtractStructuredTypeField> type;
19

20
  @JsonProperty("long_text")
21
  protected AiAgentLongTextTool longText;
22

23
  @JsonProperty("basic_text")
24
  protected AiAgentBasicTextTool basicText;
25

26
  @JsonProperty("basic_image")
27
  protected AiAgentBasicTextTool basicImage;
28

29
  public AiAgentExtractStructured() {
30
    super();
×
31
    this.type =
×
32
        new EnumWrapper<AiAgentExtractStructuredTypeField>(
33
            AiAgentExtractStructuredTypeField.AI_AGENT_EXTRACT_STRUCTURED);
34
  }
×
35

36
  protected AiAgentExtractStructured(AiAgentExtractStructuredBuilder builder) {
37
    super();
×
38
    this.type = builder.type;
×
39
    this.longText = builder.longText;
×
40
    this.basicText = builder.basicText;
×
41
    this.basicImage = builder.basicImage;
×
42
  }
×
43

44
  public EnumWrapper<AiAgentExtractStructuredTypeField> getType() {
45
    return type;
×
46
  }
47

48
  public AiAgentLongTextTool getLongText() {
49
    return longText;
×
50
  }
51

52
  public AiAgentBasicTextTool getBasicText() {
53
    return basicText;
×
54
  }
55

56
  public AiAgentBasicTextTool getBasicImage() {
57
    return basicImage;
×
58
  }
59

60
  @Override
61
  public boolean equals(Object o) {
62
    if (this == o) {
×
63
      return true;
×
64
    }
65
    if (o == null || getClass() != o.getClass()) {
×
66
      return false;
×
67
    }
68
    AiAgentExtractStructured casted = (AiAgentExtractStructured) o;
×
69
    return Objects.equals(type, casted.type)
×
70
        && Objects.equals(longText, casted.longText)
×
71
        && Objects.equals(basicText, casted.basicText)
×
72
        && Objects.equals(basicImage, casted.basicImage);
×
73
  }
74

75
  @Override
76
  public int hashCode() {
77
    return Objects.hash(type, longText, basicText, basicImage);
×
78
  }
79

80
  @Override
81
  public String toString() {
82
    return "AiAgentExtractStructured{"
×
83
        + "type='"
84
        + type
85
        + '\''
86
        + ", "
87
        + "longText='"
88
        + longText
89
        + '\''
90
        + ", "
91
        + "basicText='"
92
        + basicText
93
        + '\''
94
        + ", "
95
        + "basicImage='"
96
        + basicImage
97
        + '\''
98
        + "}";
99
  }
100

101
  public static class AiAgentExtractStructuredBuilder {
102

103
    protected EnumWrapper<AiAgentExtractStructuredTypeField> type;
104

105
    protected AiAgentLongTextTool longText;
106

107
    protected AiAgentBasicTextTool basicText;
108

109
    protected AiAgentBasicTextTool basicImage;
110

111
    public AiAgentExtractStructuredBuilder() {
×
112
      this.type =
×
113
          new EnumWrapper<AiAgentExtractStructuredTypeField>(
114
              AiAgentExtractStructuredTypeField.AI_AGENT_EXTRACT_STRUCTURED);
115
    }
×
116

117
    public AiAgentExtractStructuredBuilder type(AiAgentExtractStructuredTypeField type) {
118
      this.type = new EnumWrapper<AiAgentExtractStructuredTypeField>(type);
×
119
      return this;
×
120
    }
121

122
    public AiAgentExtractStructuredBuilder type(
123
        EnumWrapper<AiAgentExtractStructuredTypeField> type) {
124
      this.type = type;
×
125
      return this;
×
126
    }
127

128
    public AiAgentExtractStructuredBuilder longText(AiAgentLongTextTool longText) {
129
      this.longText = longText;
×
130
      return this;
×
131
    }
132

133
    public AiAgentExtractStructuredBuilder basicText(AiAgentBasicTextTool basicText) {
134
      this.basicText = basicText;
×
135
      return this;
×
136
    }
137

138
    public AiAgentExtractStructuredBuilder basicImage(AiAgentBasicTextTool basicImage) {
139
      this.basicImage = basicImage;
×
140
      return this;
×
141
    }
142

143
    public AiAgentExtractStructured build() {
144
      return new AiAgentExtractStructured(this);
×
145
    }
146
  }
147
}
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