• 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/aitaxonomyfilereference/AiTaxonomyFileReference.java
1
package com.box.sdkgen.schemas.aitaxonomyfilereference;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
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
/**
13
 * A taxonomy `.csv` file to be used for the structured extraction. For your request to work,
14
 * `fields` must also be provided.
15
 */
16
@JsonFilter("nullablePropertyFilter")
17
public class AiTaxonomyFileReference extends SerializableObject {
18

19
  /** The type of the taxonomy source. */
20
  @JsonDeserialize(
21
      using = AiTaxonomyFileReferenceTypeField.AiTaxonomyFileReferenceTypeFieldDeserializer.class)
22
  @JsonSerialize(
23
      using = AiTaxonomyFileReferenceTypeField.AiTaxonomyFileReferenceTypeFieldSerializer.class)
24
  protected EnumWrapper<AiTaxonomyFileReferenceTypeField> type;
25

26
  /**
27
   * The identifier for a taxonomy, which corresponds to the `taxonomy_key` of the taxonomy source.
28
   */
29
  @JsonProperty("taxonomy_key")
30
  protected String taxonomyKey;
31

32
  /**
33
   * The ID of the taxonomy source. Required if the type is `file` and unsupported if the type is
34
   * `taxonomy`.
35
   */
36
  protected String id;
37

38
  public AiTaxonomyFileReference() {
NEW
39
    super();
×
NEW
40
  }
×
41

42
  protected AiTaxonomyFileReference(Builder builder) {
NEW
43
    super();
×
NEW
44
    this.type = builder.type;
×
NEW
45
    this.taxonomyKey = builder.taxonomyKey;
×
NEW
46
    this.id = builder.id;
×
NEW
47
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
48
  }
×
49

50
  public EnumWrapper<AiTaxonomyFileReferenceTypeField> getType() {
NEW
51
    return type;
×
52
  }
53

54
  public String getTaxonomyKey() {
NEW
55
    return taxonomyKey;
×
56
  }
57

58
  public String getId() {
NEW
59
    return id;
×
60
  }
61

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

76
  @Override
77
  public int hashCode() {
NEW
78
    return Objects.hash(type, taxonomyKey, id);
×
79
  }
80

81
  @Override
82
  public String toString() {
NEW
83
    return "AiTaxonomyFileReference{"
×
84
        + "type='"
85
        + type
86
        + '\''
87
        + ", "
88
        + "taxonomyKey='"
89
        + taxonomyKey
90
        + '\''
91
        + ", "
92
        + "id='"
93
        + id
94
        + '\''
95
        + "}";
96
  }
97

NEW
98
  public static class Builder extends NullableFieldTracker {
×
99

100
    protected EnumWrapper<AiTaxonomyFileReferenceTypeField> type;
101

102
    protected String taxonomyKey;
103

104
    protected String id;
105

106
    public Builder type(AiTaxonomyFileReferenceTypeField type) {
NEW
107
      this.type = new EnumWrapper<AiTaxonomyFileReferenceTypeField>(type);
×
NEW
108
      return this;
×
109
    }
110

111
    public Builder type(EnumWrapper<AiTaxonomyFileReferenceTypeField> type) {
NEW
112
      this.type = type;
×
NEW
113
      return this;
×
114
    }
115

116
    public Builder taxonomyKey(String taxonomyKey) {
NEW
117
      this.taxonomyKey = taxonomyKey;
×
NEW
118
      return this;
×
119
    }
120

121
    public Builder id(String id) {
NEW
122
      this.id = id;
×
NEW
123
      return this;
×
124
    }
125

126
    public AiTaxonomyFileReference build() {
NEW
127
      return new AiTaxonomyFileReference(this);
×
128
    }
129
  }
130
}
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