• 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/aiagentextract/AiAgentExtract.java
1
package com.box.sdkgen.schemas.aiagentextract;
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 extraction. */
15
@JsonFilter("nullablePropertyFilter")
16
public class AiAgentExtract extends SerializableObject {
17

18
  /** The type of AI agent to be used for extraction. */
19
  @JsonDeserialize(using = AiAgentExtractTypeField.AiAgentExtractTypeFieldDeserializer.class)
20
  @JsonSerialize(using = AiAgentExtractTypeField.AiAgentExtractTypeFieldSerializer.class)
21
  protected EnumWrapper<AiAgentExtractTypeField> 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 AiAgentExtract() {
33
    super();
1✔
34
    this.type = new EnumWrapper<AiAgentExtractTypeField>(AiAgentExtractTypeField.AI_AGENT_EXTRACT);
1✔
35
  }
1✔
36

37
  protected AiAgentExtract(Builder builder) {
38
    super();
1✔
39
    this.type = builder.type;
1✔
40
    this.longText = builder.longText;
1✔
41
    this.basicText = builder.basicText;
1✔
42
    this.basicImage = builder.basicImage;
1✔
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
44
  }
1✔
45

46
  public EnumWrapper<AiAgentExtractTypeField> getType() {
47
    return type;
1✔
48
  }
49

50
  public AiAgentLongTextTool getLongText() {
51
    return longText;
1✔
52
  }
53

54
  public AiAgentBasicTextTool getBasicText() {
55
    return basicText;
1✔
56
  }
57

58
  public AiAgentBasicTextTool getBasicImage() {
59
    return basicImage;
1✔
60
  }
61

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

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

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

103
  public static class Builder extends NullableFieldTracker {
104

105
    protected EnumWrapper<AiAgentExtractTypeField> type;
106

107
    protected AiAgentLongTextTool longText;
108

109
    protected AiAgentBasicTextTool basicText;
110

111
    protected AiAgentBasicTextTool basicImage;
112

113
    public Builder() {
114
      super();
1✔
115
      this.type =
1✔
116
          new EnumWrapper<AiAgentExtractTypeField>(AiAgentExtractTypeField.AI_AGENT_EXTRACT);
117
    }
1✔
118

119
    public Builder type(AiAgentExtractTypeField type) {
120
      this.type = new EnumWrapper<AiAgentExtractTypeField>(type);
×
121
      return this;
×
122
    }
123

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

129
    public Builder longText(AiAgentLongTextTool longText) {
130
      this.longText = longText;
1✔
131
      return this;
1✔
132
    }
133

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

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

144
    public AiAgentExtract build() {
145
      return new AiAgentExtract(this);
1✔
146
    }
147
  }
148
}
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