• 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

17.14
/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
  @JsonProperty("ai_agent_info")
32
  protected AiAgentInfo aiAgentInfo;
33

34
  public AiExtractStructuredResponse(
35
      @JsonProperty("answer") Map<String, Object> answer,
36
      @JsonProperty("created_at") OffsetDateTime createdAt) {
37
    super();
1✔
38
    this.answer = answer;
1✔
39
    this.createdAt = createdAt;
1✔
40
  }
1✔
41

42
  protected AiExtractStructuredResponse(Builder builder) {
UNCOV
43
    super();
×
UNCOV
44
    this.answer = builder.answer;
×
UNCOV
45
    this.createdAt = builder.createdAt;
×
UNCOV
46
    this.completionReason = builder.completionReason;
×
UNCOV
47
    this.aiAgentInfo = builder.aiAgentInfo;
×
UNCOV
48
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
49
  }
×
50

51
  public Map<String, Object> getAnswer() {
52
    return answer;
1✔
53
  }
54

55
  public OffsetDateTime getCreatedAt() {
56
    return createdAt;
×
57
  }
58

59
  public String getCompletionReason() {
60
    return completionReason;
1✔
61
  }
62

63
  public AiAgentInfo getAiAgentInfo() {
64
    return aiAgentInfo;
×
65
  }
66

67
  @Override
68
  public boolean equals(Object o) {
UNCOV
69
    if (this == o) {
×
UNCOV
70
      return true;
×
71
    }
72
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
73
      return false;
×
74
    }
UNCOV
75
    AiExtractStructuredResponse casted = (AiExtractStructuredResponse) o;
×
76
    return Objects.equals(answer, casted.answer)
×
UNCOV
77
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
78
        && Objects.equals(completionReason, casted.completionReason)
×
UNCOV
79
        && Objects.equals(aiAgentInfo, casted.aiAgentInfo);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
84
    return Objects.hash(answer, createdAt, completionReason, aiAgentInfo);
×
85
  }
86

87
  @Override
88
  public String toString() {
89
    return "AiExtractStructuredResponse{"
×
90
        + "answer='"
91
        + answer
92
        + '\''
93
        + ", "
94
        + "createdAt='"
95
        + createdAt
96
        + '\''
97
        + ", "
98
        + "completionReason='"
99
        + completionReason
100
        + '\''
101
        + ", "
102
        + "aiAgentInfo='"
103
        + aiAgentInfo
104
        + '\''
105
        + "}";
106
  }
107

108
  public static class Builder extends NullableFieldTracker {
109

110
    protected final Map<String, Object> answer;
111

112
    protected final OffsetDateTime createdAt;
113

114
    protected String completionReason;
115

116
    protected AiAgentInfo aiAgentInfo;
117

118
    public Builder(Map<String, Object> answer, OffsetDateTime createdAt) {
UNCOV
119
      super();
×
UNCOV
120
      this.answer = answer;
×
UNCOV
121
      this.createdAt = createdAt;
×
UNCOV
122
    }
×
123

124
    public Builder completionReason(String completionReason) {
UNCOV
125
      this.completionReason = completionReason;
×
UNCOV
126
      return this;
×
127
    }
128

129
    public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) {
UNCOV
130
      this.aiAgentInfo = aiAgentInfo;
×
UNCOV
131
      return this;
×
132
    }
133

134
    public AiExtractStructuredResponse build() {
UNCOV
135
      return new AiExtractStructuredResponse(this);
×
136
    }
137
  }
138
}
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