• 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

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 Agent](g://box-ai/ai-tutorials/extract-metadata-structured/#enhanced-extract-agent)).
24
   */
25
  protected String id;
26

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

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

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

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

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

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

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

69
  public static class Builder extends NullableFieldTracker {
70

71
    protected EnumWrapper<AiAgentReferenceTypeField> type;
72

73
    protected String id;
74

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

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

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

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

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