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

box / box-java-sdk-gen / #142

28 May 2025 09:09AM UTC coverage: 35.534% (+0.2%) from 35.312%
#142

Pull #317

github

web-flow
Merge a88c4bc17 into 7ea98521c
Pull Request #317: chore: Update .codegen.json with commit hash of codegen and openapi spec

38 of 77 new or added lines in 15 files covered. (49.35%)

9 existing lines in 9 files now uncovered.

15586 of 43862 relevant lines covered (35.53%)

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/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;
×
NEW
41
    this.basicImage = builder.basicImage;
×
UNCOV
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() {
NEW
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)
×
NEW
71
        && Objects.equals(basicText, casted.basicText)
×
NEW
72
        && Objects.equals(basicImage, casted.basicImage);
×
73
  }
74

75
  @Override
76
  public int hashCode() {
NEW
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 type(AiAgentExtractStructuredTypeField type) {
112
      this.type = new EnumWrapper<AiAgentExtractStructuredTypeField>(type);
×
113
      return this;
×
114
    }
115

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

122
    public AiAgentExtractStructuredBuilder longText(AiAgentLongTextTool longText) {
123
      this.longText = longText;
×
124
      return this;
×
125
    }
126

127
    public AiAgentExtractStructuredBuilder basicText(AiAgentBasicTextTool basicText) {
128
      this.basicText = basicText;
×
129
      return this;
×
130
    }
131

132
    public AiAgentExtractStructuredBuilder basicImage(AiAgentBasicTextTool basicImage) {
NEW
133
      this.basicImage = basicImage;
×
NEW
134
      return this;
×
135
    }
136

137
    public AiAgentExtractStructured build() {
138
      return new AiAgentExtractStructured(this);
×
139
    }
140
  }
141
}
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