• 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/aitaxonomyreference/AiTaxonomyReference.java
1
package com.box.sdkgen.schemas.aitaxonomyreference;
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 source to be used for the structured extraction. For your request to work, `fields`
14
 * must also be provided.
15
 */
16
@JsonFilter("nullablePropertyFilter")
17
public class AiTaxonomyReference extends SerializableObject {
18

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

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

31
  /** The namespace of the taxonomy source. */
32
  protected String namespace;
33

34
  public AiTaxonomyReference() {
NEW
35
    super();
×
NEW
36
  }
×
37

38
  protected AiTaxonomyReference(Builder builder) {
NEW
39
    super();
×
NEW
40
    this.type = builder.type;
×
NEW
41
    this.taxonomyKey = builder.taxonomyKey;
×
NEW
42
    this.namespace = builder.namespace;
×
NEW
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
NEW
44
  }
×
45

46
  public EnumWrapper<AiTaxonomyReferenceTypeField> getType() {
NEW
47
    return type;
×
48
  }
49

50
  public String getTaxonomyKey() {
NEW
51
    return taxonomyKey;
×
52
  }
53

54
  public String getNamespace() {
NEW
55
    return namespace;
×
56
  }
57

58
  @Override
59
  public boolean equals(Object o) {
NEW
60
    if (this == o) {
×
NEW
61
      return true;
×
62
    }
NEW
63
    if (o == null || getClass() != o.getClass()) {
×
NEW
64
      return false;
×
65
    }
NEW
66
    AiTaxonomyReference casted = (AiTaxonomyReference) o;
×
NEW
67
    return Objects.equals(type, casted.type)
×
NEW
68
        && Objects.equals(taxonomyKey, casted.taxonomyKey)
×
NEW
69
        && Objects.equals(namespace, casted.namespace);
×
70
  }
71

72
  @Override
73
  public int hashCode() {
NEW
74
    return Objects.hash(type, taxonomyKey, namespace);
×
75
  }
76

77
  @Override
78
  public String toString() {
NEW
79
    return "AiTaxonomyReference{"
×
80
        + "type='"
81
        + type
82
        + '\''
83
        + ", "
84
        + "taxonomyKey='"
85
        + taxonomyKey
86
        + '\''
87
        + ", "
88
        + "namespace='"
89
        + namespace
90
        + '\''
91
        + "}";
92
  }
93

NEW
94
  public static class Builder extends NullableFieldTracker {
×
95

96
    protected EnumWrapper<AiTaxonomyReferenceTypeField> type;
97

98
    protected String taxonomyKey;
99

100
    protected String namespace;
101

102
    public Builder type(AiTaxonomyReferenceTypeField type) {
NEW
103
      this.type = new EnumWrapper<AiTaxonomyReferenceTypeField>(type);
×
NEW
104
      return this;
×
105
    }
106

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

112
    public Builder taxonomyKey(String taxonomyKey) {
NEW
113
      this.taxonomyKey = taxonomyKey;
×
NEW
114
      return this;
×
115
    }
116

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

122
    public AiTaxonomyReference build() {
NEW
123
      return new AiTaxonomyReference(this);
×
124
    }
125
  }
126
}
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