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

box / box-java-sdk-gen / #185

04 Jun 2025 10:42AM UTC coverage: 34.848% (-0.8%) from 35.631%
#185

Pull #327

github

web-flow
Merge a4b5eccbc into 28f2ec7f8
Pull Request #327: chore: Update .codegen.json with commit hash of codegen and openapi spec

15810 of 45369 relevant lines covered (34.85%)

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/aiagentextract/AiAgentExtract.java
1
package com.box.sdkgen.schemas.aiagentextract;
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 AiAgentExtract extends SerializableObject {
13

14
  @JsonDeserialize(using = AiAgentExtractTypeField.AiAgentExtractTypeFieldDeserializer.class)
15
  @JsonSerialize(using = AiAgentExtractTypeField.AiAgentExtractTypeFieldSerializer.class)
16
  protected EnumWrapper<AiAgentExtractTypeField> type;
17

18
  @JsonProperty("long_text")
19
  protected AiAgentLongTextTool longText;
20

21
  @JsonProperty("basic_text")
22
  protected AiAgentBasicTextTool basicText;
23

24
  @JsonProperty("basic_image")
25
  protected AiAgentBasicTextTool basicImage;
26

27
  public AiAgentExtract() {
28
    super();
×
29
    this.type = new EnumWrapper<AiAgentExtractTypeField>(AiAgentExtractTypeField.AI_AGENT_EXTRACT);
×
30
  }
×
31

32
  protected AiAgentExtract(AiAgentExtractBuilder builder) {
33
    super();
×
34
    this.type = builder.type;
×
35
    this.longText = builder.longText;
×
36
    this.basicText = builder.basicText;
×
37
    this.basicImage = builder.basicImage;
×
38
  }
×
39

40
  public EnumWrapper<AiAgentExtractTypeField> getType() {
41
    return type;
×
42
  }
43

44
  public AiAgentLongTextTool getLongText() {
45
    return longText;
×
46
  }
47

48
  public AiAgentBasicTextTool getBasicText() {
49
    return basicText;
×
50
  }
51

52
  public AiAgentBasicTextTool getBasicImage() {
53
    return basicImage;
×
54
  }
55

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

71
  @Override
72
  public int hashCode() {
73
    return Objects.hash(type, longText, basicText, basicImage);
×
74
  }
75

76
  @Override
77
  public String toString() {
78
    return "AiAgentExtract{"
×
79
        + "type='"
80
        + type
81
        + '\''
82
        + ", "
83
        + "longText='"
84
        + longText
85
        + '\''
86
        + ", "
87
        + "basicText='"
88
        + basicText
89
        + '\''
90
        + ", "
91
        + "basicImage='"
92
        + basicImage
93
        + '\''
94
        + "}";
95
  }
96

97
  public static class AiAgentExtractBuilder {
98

99
    protected EnumWrapper<AiAgentExtractTypeField> type;
100

101
    protected AiAgentLongTextTool longText;
102

103
    protected AiAgentBasicTextTool basicText;
104

105
    protected AiAgentBasicTextTool basicImage;
106

107
    public AiAgentExtractBuilder() {
×
108
      this.type =
×
109
          new EnumWrapper<AiAgentExtractTypeField>(AiAgentExtractTypeField.AI_AGENT_EXTRACT);
110
    }
×
111

112
    public AiAgentExtractBuilder type(AiAgentExtractTypeField type) {
113
      this.type = new EnumWrapper<AiAgentExtractTypeField>(type);
×
114
      return this;
×
115
    }
116

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

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

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

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

137
    public AiAgentExtract build() {
138
      return new AiAgentExtract(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