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

box / box-java-sdk-gen / #295

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

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/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
@JsonFilter("nullablePropertyFilter")
15
public class AiAgentExtractStructured extends SerializableObject {
16

17
  @JsonDeserialize(
18
      using = AiAgentExtractStructuredTypeField.AiAgentExtractStructuredTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using = AiAgentExtractStructuredTypeField.AiAgentExtractStructuredTypeFieldSerializer.class)
21
  protected EnumWrapper<AiAgentExtractStructuredTypeField> type;
22

23
  @JsonProperty("long_text")
24
  protected AiAgentLongTextTool longText;
25

26
  @JsonProperty("basic_text")
27
  protected AiAgentBasicTextTool basicText;
28

29
  @JsonProperty("basic_image")
30
  protected AiAgentBasicTextTool basicImage;
31

32
  public AiAgentExtractStructured() {
UNCOV
33
    super();
×
34
    this.type =
×
35
        new EnumWrapper<AiAgentExtractStructuredTypeField>(
36
            AiAgentExtractStructuredTypeField.AI_AGENT_EXTRACT_STRUCTURED);
37
  }
×
38

39
  protected AiAgentExtractStructured(Builder builder) {
40
    super();
×
41
    this.type = builder.type;
×
42
    this.longText = builder.longText;
×
UNCOV
43
    this.basicText = builder.basicText;
×
UNCOV
44
    this.basicImage = builder.basicImage;
×
45
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
46
  }
×
47

48
  public EnumWrapper<AiAgentExtractStructuredTypeField> getType() {
49
    return type;
×
50
  }
51

52
  public AiAgentLongTextTool getLongText() {
53
    return longText;
×
54
  }
55

56
  public AiAgentBasicTextTool getBasicText() {
57
    return basicText;
×
58
  }
59

60
  public AiAgentBasicTextTool getBasicImage() {
UNCOV
61
    return basicImage;
×
62
  }
63

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

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

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

105
  public static class Builder extends NullableFieldTracker {
106

107
    protected EnumWrapper<AiAgentExtractStructuredTypeField> type;
108

109
    protected AiAgentLongTextTool longText;
110

111
    protected AiAgentBasicTextTool basicText;
112

113
    protected AiAgentBasicTextTool basicImage;
114

115
    public Builder() {
UNCOV
116
      super();
×
UNCOV
117
      this.type =
×
118
          new EnumWrapper<AiAgentExtractStructuredTypeField>(
119
              AiAgentExtractStructuredTypeField.AI_AGENT_EXTRACT_STRUCTURED);
UNCOV
120
    }
×
121

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

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

132
    public Builder longText(AiAgentLongTextTool longText) {
133
      this.longText = longText;
×
134
      return this;
×
135
    }
136

137
    public Builder basicText(AiAgentBasicTextTool basicText) {
138
      this.basicText = basicText;
×
139
      return this;
×
140
    }
141

142
    public Builder basicImage(AiAgentBasicTextTool basicImage) {
143
      this.basicImage = basicImage;
×
UNCOV
144
      return this;
×
145
    }
146

147
    public AiAgentExtractStructured build() {
UNCOV
148
      return new AiAgentExtractStructured(this);
×
149
    }
150
  }
151
}
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