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

box / box-java-sdk / #7242

10 Jun 2026 01:57PM UTC coverage: 12.418% (-0.05%) from 12.468%
#7242

Pull #1882

github

web-flow
Merge 475e1dd17 into de6bd88fa
Pull Request #1882: feat(boxsdkgen): Add new parameters to ai extract structured method (box/box-openapi#604)

0 of 231 new or added lines in 10 files covered. (0.0%)

17 existing lines in 10 files now uncovered.

8368 of 67388 relevant lines covered (12.42%)

0.12 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/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.box.sdkgen.schemas.aiextractsubfield.AiExtractSubField;
6
import com.box.sdkgen.schemas.aioptionsrules.AiOptionsRules;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import java.util.List;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class AiExtractStructuredFieldsField extends SerializableObject {
14

15
  /** A unique identifier for the field. */
16
  protected final String key;
17

18
  /** A description of the field. */
19
  protected String description;
20

21
  /** The display name of the field. */
22
  protected String displayName;
23

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

27
  /**
28
   * The type of the field. It can include but is not limited to `string`, `float`, `date`, `enum`,
29
   * `multiSelect`,`taxonomy`, `struct`, and `table`.
30
   */
31
  protected String type;
32

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

39
  /**
40
   * The nested fields for this field. Used with `struct` and `table` field types to define the
41
   * nested structure.
42
   */
43
  protected List<AiExtractSubField> fields;
44

45
  /**
46
   * The identifier for a taxonomy, which corresponds to the `key` of the taxonomy source. Required
47
   * if using `taxonomy` type field.
48
   */
49
  @JsonProperty("taxonomy_key")
50
  protected String taxonomyKey;
51

52
  /**
53
   * The namespace of the taxonomy source. Required if using `taxonomy` type field from an existing
54
   * taxonomy.
55
   */
56
  protected String namespace;
57

58
  @JsonProperty("options_rules")
59
  protected AiOptionsRules optionsRules;
60

61
  public AiExtractStructuredFieldsField(@JsonProperty("key") String key) {
62
    super();
×
63
    this.key = key;
×
64
  }
×
65

66
  protected AiExtractStructuredFieldsField(Builder builder) {
67
    super();
×
68
    this.key = builder.key;
×
69
    this.description = builder.description;
×
70
    this.displayName = builder.displayName;
×
71
    this.prompt = builder.prompt;
×
72
    this.type = builder.type;
×
73
    this.options = builder.options;
×
NEW
74
    this.fields = builder.fields;
×
NEW
75
    this.taxonomyKey = builder.taxonomyKey;
×
NEW
76
    this.namespace = builder.namespace;
×
NEW
77
    this.optionsRules = builder.optionsRules;
×
78
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
79
  }
×
80

81
  public String getKey() {
82
    return key;
×
83
  }
84

85
  public String getDescription() {
86
    return description;
×
87
  }
88

89
  public String getDisplayName() {
90
    return displayName;
×
91
  }
92

93
  public String getPrompt() {
94
    return prompt;
×
95
  }
96

97
  public String getType() {
98
    return type;
×
99
  }
100

101
  public List<AiExtractStructuredFieldsOptionsField> getOptions() {
102
    return options;
×
103
  }
104

105
  public List<AiExtractSubField> getFields() {
NEW
106
    return fields;
×
107
  }
108

109
  public String getTaxonomyKey() {
NEW
110
    return taxonomyKey;
×
111
  }
112

113
  public String getNamespace() {
NEW
114
    return namespace;
×
115
  }
116

117
  public AiOptionsRules getOptionsRules() {
NEW
118
    return optionsRules;
×
119
  }
120

121
  @Override
122
  public boolean equals(Object o) {
123
    if (this == o) {
×
124
      return true;
×
125
    }
126
    if (o == null || getClass() != o.getClass()) {
×
127
      return false;
×
128
    }
129
    AiExtractStructuredFieldsField casted = (AiExtractStructuredFieldsField) o;
×
130
    return Objects.equals(key, casted.key)
×
131
        && Objects.equals(description, casted.description)
×
132
        && Objects.equals(displayName, casted.displayName)
×
133
        && Objects.equals(prompt, casted.prompt)
×
134
        && Objects.equals(type, casted.type)
×
NEW
135
        && Objects.equals(options, casted.options)
×
NEW
136
        && Objects.equals(fields, casted.fields)
×
NEW
137
        && Objects.equals(taxonomyKey, casted.taxonomyKey)
×
NEW
138
        && Objects.equals(namespace, casted.namespace)
×
NEW
139
        && Objects.equals(optionsRules, casted.optionsRules);
×
140
  }
141

142
  @Override
143
  public int hashCode() {
NEW
144
    return Objects.hash(
×
145
        key,
146
        description,
147
        displayName,
148
        prompt,
149
        type,
150
        options,
151
        fields,
152
        taxonomyKey,
153
        namespace,
154
        optionsRules);
155
  }
156

157
  @Override
158
  public String toString() {
159
    return "AiExtractStructuredFieldsField{"
×
160
        + "key='"
161
        + key
162
        + '\''
163
        + ", "
164
        + "description='"
165
        + description
166
        + '\''
167
        + ", "
168
        + "displayName='"
169
        + displayName
170
        + '\''
171
        + ", "
172
        + "prompt='"
173
        + prompt
174
        + '\''
175
        + ", "
176
        + "type='"
177
        + type
178
        + '\''
179
        + ", "
180
        + "options='"
181
        + options
182
        + '\''
183
        + ", "
184
        + "fields='"
185
        + fields
186
        + '\''
187
        + ", "
188
        + "taxonomyKey='"
189
        + taxonomyKey
190
        + '\''
191
        + ", "
192
        + "namespace='"
193
        + namespace
194
        + '\''
195
        + ", "
196
        + "optionsRules='"
197
        + optionsRules
198
        + '\''
199
        + "}";
200
  }
201

202
  public static class Builder extends NullableFieldTracker {
203

204
    protected final String key;
205

206
    protected String description;
207

208
    protected String displayName;
209

210
    protected String prompt;
211

212
    protected String type;
213

214
    protected List<AiExtractStructuredFieldsOptionsField> options;
215

216
    protected List<AiExtractSubField> fields;
217

218
    protected String taxonomyKey;
219

220
    protected String namespace;
221

222
    protected AiOptionsRules optionsRules;
223

224
    public Builder(String key) {
225
      super();
×
226
      this.key = key;
×
227
    }
×
228

229
    public Builder description(String description) {
230
      this.description = description;
×
231
      return this;
×
232
    }
233

234
    public Builder displayName(String displayName) {
235
      this.displayName = displayName;
×
236
      return this;
×
237
    }
238

239
    public Builder prompt(String prompt) {
240
      this.prompt = prompt;
×
241
      return this;
×
242
    }
243

244
    public Builder type(String type) {
245
      this.type = type;
×
246
      return this;
×
247
    }
248

249
    public Builder options(List<AiExtractStructuredFieldsOptionsField> options) {
250
      this.options = options;
×
251
      return this;
×
252
    }
253

254
    public Builder fields(List<AiExtractSubField> fields) {
NEW
255
      this.fields = fields;
×
NEW
256
      return this;
×
257
    }
258

259
    public Builder taxonomyKey(String taxonomyKey) {
NEW
260
      this.taxonomyKey = taxonomyKey;
×
NEW
261
      return this;
×
262
    }
263

264
    public Builder namespace(String namespace) {
NEW
265
      this.namespace = namespace;
×
NEW
266
      return this;
×
267
    }
268

269
    public Builder optionsRules(AiOptionsRules optionsRules) {
NEW
270
      this.optionsRules = optionsRules;
×
NEW
271
      return this;
×
272
    }
273

274
    public AiExtractStructuredFieldsField build() {
275
      return new AiExtractStructuredFieldsField(this);
×
276
    }
277
  }
278
}
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