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

box / box-java-sdk / #6370

19 Mar 2026 11:44AM UTC coverage: 12.801% (-0.01%) from 12.813%
#6370

Pull #1740

github

web-flow
Merge ca1892ead into fb1714773
Pull Request #1740: fix(boxsdkgen): feat: Add Hub Document API (part 2) (box/box-openapi#588)

0 of 63 new or added lines in 5 files covered. (0.0%)

2 existing lines in 2 files now uncovered.

8368 of 65370 relevant lines covered (12.8%)

0.13 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/aiextractstructuredresponse/AiExtractStructuredResponse.java
1
package com.box.sdkgen.schemas.aiextractstructuredresponse;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.schemas.aiagentinfo.AiAgentInfo;
7
import com.fasterxml.jackson.annotation.JsonFilter;
8
import com.fasterxml.jackson.annotation.JsonProperty;
9
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
11
import java.time.OffsetDateTime;
12
import java.util.Map;
13
import java.util.Objects;
14

15
/** AI extract structured response. */
16
@JsonFilter("nullablePropertyFilter")
17
public class AiExtractStructuredResponse extends SerializableObject {
18

19
  protected final Map<String, Object> answer;
20

21
  /** The ISO date formatted timestamp of when the answer to the prompt was created. */
22
  @JsonProperty("created_at")
23
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
24
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
25
  protected final OffsetDateTime createdAt;
26

27
  /** The reason the response finishes. */
28
  @JsonProperty("completion_reason")
29
  protected String completionReason;
30

31
  /**
32
   * The confidence score levels and numeric values for each extracted field as a JSON dictionary.
33
   * This can be empty if no field could be extracted.
34
   */
35
  @JsonProperty("confidence_score")
36
  protected Map<String, Object> confidenceScore;
37

38
  /**
39
   * The reference for each extracted field as a JSON dictionary. This can be empty if no field
40
   * could be extracted.
41
   */
42
  protected Map<String, Object> reference;
43

44
  @JsonProperty("ai_agent_info")
45
  protected AiAgentInfo aiAgentInfo;
46

47
  public AiExtractStructuredResponse(
48
      @JsonProperty("answer") Map<String, Object> answer,
49
      @JsonProperty("created_at") OffsetDateTime createdAt) {
50
    super();
×
51
    this.answer = answer;
×
52
    this.createdAt = createdAt;
×
53
  }
×
54

55
  protected AiExtractStructuredResponse(Builder builder) {
56
    super();
×
57
    this.answer = builder.answer;
×
58
    this.createdAt = builder.createdAt;
×
59
    this.completionReason = builder.completionReason;
×
60
    this.confidenceScore = builder.confidenceScore;
×
NEW
61
    this.reference = builder.reference;
×
62
    this.aiAgentInfo = builder.aiAgentInfo;
×
63
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
64
  }
×
65

66
  public Map<String, Object> getAnswer() {
67
    return answer;
×
68
  }
69

70
  public OffsetDateTime getCreatedAt() {
71
    return createdAt;
×
72
  }
73

74
  public String getCompletionReason() {
75
    return completionReason;
×
76
  }
77

78
  public Map<String, Object> getConfidenceScore() {
79
    return confidenceScore;
×
80
  }
81

82
  public Map<String, Object> getReference() {
NEW
83
    return reference;
×
84
  }
85

86
  public AiAgentInfo getAiAgentInfo() {
87
    return aiAgentInfo;
×
88
  }
89

90
  @Override
91
  public boolean equals(Object o) {
92
    if (this == o) {
×
93
      return true;
×
94
    }
95
    if (o == null || getClass() != o.getClass()) {
×
96
      return false;
×
97
    }
98
    AiExtractStructuredResponse casted = (AiExtractStructuredResponse) o;
×
99
    return Objects.equals(answer, casted.answer)
×
100
        && Objects.equals(createdAt, casted.createdAt)
×
101
        && Objects.equals(completionReason, casted.completionReason)
×
102
        && Objects.equals(confidenceScore, casted.confidenceScore)
×
NEW
103
        && Objects.equals(reference, casted.reference)
×
UNCOV
104
        && Objects.equals(aiAgentInfo, casted.aiAgentInfo);
×
105
  }
106

107
  @Override
108
  public int hashCode() {
NEW
109
    return Objects.hash(
×
110
        answer, createdAt, completionReason, confidenceScore, reference, aiAgentInfo);
111
  }
112

113
  @Override
114
  public String toString() {
115
    return "AiExtractStructuredResponse{"
×
116
        + "answer='"
117
        + answer
118
        + '\''
119
        + ", "
120
        + "createdAt='"
121
        + createdAt
122
        + '\''
123
        + ", "
124
        + "completionReason='"
125
        + completionReason
126
        + '\''
127
        + ", "
128
        + "confidenceScore='"
129
        + confidenceScore
130
        + '\''
131
        + ", "
132
        + "reference='"
133
        + reference
134
        + '\''
135
        + ", "
136
        + "aiAgentInfo='"
137
        + aiAgentInfo
138
        + '\''
139
        + "}";
140
  }
141

142
  public static class Builder extends NullableFieldTracker {
143

144
    protected final Map<String, Object> answer;
145

146
    protected final OffsetDateTime createdAt;
147

148
    protected String completionReason;
149

150
    protected Map<String, Object> confidenceScore;
151

152
    protected Map<String, Object> reference;
153

154
    protected AiAgentInfo aiAgentInfo;
155

156
    public Builder(Map<String, Object> answer, OffsetDateTime createdAt) {
157
      super();
×
158
      this.answer = answer;
×
159
      this.createdAt = createdAt;
×
160
    }
×
161

162
    public Builder completionReason(String completionReason) {
163
      this.completionReason = completionReason;
×
164
      return this;
×
165
    }
166

167
    public Builder confidenceScore(Map<String, Object> confidenceScore) {
168
      this.confidenceScore = confidenceScore;
×
169
      return this;
×
170
    }
171

172
    public Builder reference(Map<String, Object> reference) {
NEW
173
      this.reference = reference;
×
NEW
174
      return this;
×
175
    }
176

177
    public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) {
178
      this.aiAgentInfo = aiAgentInfo;
×
179
      return this;
×
180
    }
181

182
    public AiExtractStructuredResponse build() {
183
      return new AiExtractStructuredResponse(this);
×
184
    }
185
  }
186
}
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