• 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

64.44
/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructuredFieldsField.java
1
package com.box.sdkgen.schemas.aiextractstructured;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.List;
8
import java.util.Objects;
9

10
@JsonFilter("nullablePropertyFilter")
11
public class AiExtractStructuredFieldsField extends SerializableObject {
12

13
  /** A unique identifier for the field. */
14
  protected final String key;
15

16
  /** A description of the field. */
17
  protected String description;
18

19
  /** The display name of the field. */
20
  protected String displayName;
21

22
  /** The context about the key that may include how to find and format it. */
23
  protected String prompt;
24

25
  /**
26
   * The type of the field. It include but is not limited to string, float, date, enum, and
27
   * multiSelect.
28
   */
29
  protected String type;
30

31
  /**
32
   * A list of options for this field. This is most often used in combination with the enum and
33
   * multiSelect field types.
34
   */
35
  protected List<AiExtractStructuredFieldsOptionsField> options;
36

37
  public AiExtractStructuredFieldsField(@JsonProperty("key") String key) {
38
    super();
×
39
    this.key = key;
×
40
  }
×
41

42
  protected AiExtractStructuredFieldsField(Builder builder) {
43
    super();
1✔
44
    this.key = builder.key;
1✔
45
    this.description = builder.description;
1✔
46
    this.displayName = builder.displayName;
1✔
47
    this.prompt = builder.prompt;
1✔
48
    this.type = builder.type;
1✔
49
    this.options = builder.options;
1✔
50
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
51
  }
1✔
52

53
  public String getKey() {
54
    return key;
1✔
55
  }
56

57
  public String getDescription() {
58
    return description;
1✔
59
  }
60

61
  public String getDisplayName() {
62
    return displayName;
1✔
63
  }
64

65
  public String getPrompt() {
66
    return prompt;
1✔
67
  }
68

69
  public String getType() {
70
    return type;
1✔
71
  }
72

73
  public List<AiExtractStructuredFieldsOptionsField> getOptions() {
74
    return options;
1✔
75
  }
76

77
  @Override
78
  public boolean equals(Object o) {
79
    if (this == o) {
×
80
      return true;
×
81
    }
82
    if (o == null || getClass() != o.getClass()) {
×
83
      return false;
×
84
    }
85
    AiExtractStructuredFieldsField casted = (AiExtractStructuredFieldsField) o;
×
86
    return Objects.equals(key, casted.key)
×
87
        && Objects.equals(description, casted.description)
×
88
        && Objects.equals(displayName, casted.displayName)
×
89
        && Objects.equals(prompt, casted.prompt)
×
90
        && Objects.equals(type, casted.type)
×
91
        && Objects.equals(options, casted.options);
×
92
  }
93

94
  @Override
95
  public int hashCode() {
96
    return Objects.hash(key, description, displayName, prompt, type, options);
×
97
  }
98

99
  @Override
100
  public String toString() {
101
    return "AiExtractStructuredFieldsField{"
×
102
        + "key='"
103
        + key
104
        + '\''
105
        + ", "
106
        + "description='"
107
        + description
108
        + '\''
109
        + ", "
110
        + "displayName='"
111
        + displayName
112
        + '\''
113
        + ", "
114
        + "prompt='"
115
        + prompt
116
        + '\''
117
        + ", "
118
        + "type='"
119
        + type
120
        + '\''
121
        + ", "
122
        + "options='"
123
        + options
124
        + '\''
125
        + "}";
126
  }
127

128
  public static class Builder extends NullableFieldTracker {
129

130
    protected final String key;
131

132
    protected String description;
133

134
    protected String displayName;
135

136
    protected String prompt;
137

138
    protected String type;
139

140
    protected List<AiExtractStructuredFieldsOptionsField> options;
141

142
    public Builder(String key) {
143
      super();
1✔
144
      this.key = key;
1✔
145
    }
1✔
146

147
    public Builder description(String description) {
148
      this.description = description;
1✔
149
      return this;
1✔
150
    }
151

152
    public Builder displayName(String displayName) {
153
      this.displayName = displayName;
1✔
154
      return this;
1✔
155
    }
156

157
    public Builder prompt(String prompt) {
158
      this.prompt = prompt;
1✔
159
      return this;
1✔
160
    }
161

162
    public Builder type(String type) {
163
      this.type = type;
1✔
164
      return this;
1✔
165
    }
166

167
    public Builder options(List<AiExtractStructuredFieldsOptionsField> options) {
168
      this.options = options;
1✔
169
      return this;
1✔
170
    }
171

172
    public AiExtractStructuredFieldsField build() {
173
      return new AiExtractStructuredFieldsField(this);
1✔
174
    }
175
  }
176
}
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