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

box / box-java-sdk / #5922

17 Dec 2025 05:03PM UTC coverage: 35.498% (-0.4%) from 35.917%
#5922

push

github

web-flow
fix: add taxonomy to Metadata Field (read) definition (box/box-openapi#572) (#1644)

Co-authored-by: box-sdk-build <box-sdk-build@box.com>

2 of 2 new or added lines in 1 file covered. (100.0%)

535 existing lines in 31 files now uncovered.

18926 of 53316 relevant lines covered (35.5%)

0.35 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

46.43
/src/main/java/com/box/sdkgen/schemas/aiagentreference/AiAgentReference.java
1
package com.box.sdkgen.schemas.aiagentreference;
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.databind.annotation.JsonDeserialize;
8
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
9
import java.util.Objects;
10

11
/** The AI agent used to handle queries. */
12
@JsonFilter("nullablePropertyFilter")
13
public class AiAgentReference extends SerializableObject {
14

15
  /** The type of AI agent used to handle queries. */
16
  @JsonDeserialize(using = AiAgentReferenceTypeField.AiAgentReferenceTypeFieldDeserializer.class)
17
  @JsonSerialize(using = AiAgentReferenceTypeField.AiAgentReferenceTypeFieldSerializer.class)
18
  protected EnumWrapper<AiAgentReferenceTypeField> type;
19

20
  /**
21
   * The ID of an Agent. This can be a numeric ID for custom agents (for example, `14031`) or a
22
   * unique identifier for pre-built agents (for example, `enhanced_extract_agent` for the [Enhanced
23
   * Extract
24
   * Agent](https://developer.box.com/guides/box-ai/ai-tutorials/extract-metadata-structured#enhanced-extract-agent)).
25
   */
26
  protected String id;
27

28
  public AiAgentReference() {
29
    super();
×
30
    this.type = new EnumWrapper<AiAgentReferenceTypeField>(AiAgentReferenceTypeField.AI_AGENT_ID);
×
UNCOV
31
  }
×
32

33
  protected AiAgentReference(Builder builder) {
34
    super();
1✔
35
    this.type = builder.type;
1✔
36
    this.id = builder.id;
1✔
37
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
38
  }
1✔
39

40
  public EnumWrapper<AiAgentReferenceTypeField> getType() {
41
    return type;
1✔
42
  }
43

44
  public String getId() {
45
    return id;
1✔
46
  }
47

48
  @Override
49
  public boolean equals(Object o) {
50
    if (this == o) {
×
UNCOV
51
      return true;
×
52
    }
53
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
54
      return false;
×
55
    }
56
    AiAgentReference casted = (AiAgentReference) o;
×
UNCOV
57
    return Objects.equals(type, casted.type) && Objects.equals(id, casted.id);
×
58
  }
59

60
  @Override
61
  public int hashCode() {
UNCOV
62
    return Objects.hash(type, id);
×
63
  }
64

65
  @Override
66
  public String toString() {
UNCOV
67
    return "AiAgentReference{" + "type='" + type + '\'' + ", " + "id='" + id + '\'' + "}";
×
68
  }
69

70
  public static class Builder extends NullableFieldTracker {
71

72
    protected EnumWrapper<AiAgentReferenceTypeField> type;
73

74
    protected String id;
75

76
    public Builder() {
77
      super();
1✔
78
      this.type = new EnumWrapper<AiAgentReferenceTypeField>(AiAgentReferenceTypeField.AI_AGENT_ID);
1✔
79
    }
1✔
80

81
    public Builder type(AiAgentReferenceTypeField type) {
82
      this.type = new EnumWrapper<AiAgentReferenceTypeField>(type);
×
UNCOV
83
      return this;
×
84
    }
85

86
    public Builder type(EnumWrapper<AiAgentReferenceTypeField> type) {
87
      this.type = type;
×
UNCOV
88
      return this;
×
89
    }
90

91
    public Builder id(String id) {
92
      this.id = id;
1✔
93
      return this;
1✔
94
    }
95

96
    public AiAgentReference build() {
97
      return new AiAgentReference(this);
1✔
98
    }
99
  }
100
}
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

© 2025 Coveralls, Inc