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

box / box-java-sdk-gen / #295

24 Jun 2025 01:20PM UTC coverage: 35.661% (+0.03%) from 35.632%
#295

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

14.29
/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.box.sdkgen.schemas.aiextractresponse.AiExtractResponse;
8
import com.fasterxml.jackson.annotation.JsonFilter;
9
import com.fasterxml.jackson.annotation.JsonProperty;
10
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
12
import java.util.Date;
13
import java.util.Objects;
14

15
@JsonFilter("nullablePropertyFilter")
16
public class AiExtractStructuredResponse extends SerializableObject {
17

18
  protected final AiExtractResponse answer;
19

20
  @JsonProperty("created_at")
21
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
22
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
23
  protected final Date createdAt;
24

25
  @JsonProperty("completion_reason")
26
  protected String completionReason;
27

28
  @JsonProperty("ai_agent_info")
29
  protected AiAgentInfo aiAgentInfo;
30

31
  public AiExtractStructuredResponse(
32
      @JsonProperty("answer") AiExtractResponse answer,
33
      @JsonProperty("created_at") Date createdAt) {
34
    super();
1✔
35
    this.answer = answer;
1✔
36
    this.createdAt = createdAt;
1✔
37
  }
1✔
38

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

48
  public AiExtractResponse getAnswer() {
49
    return answer;
×
50
  }
51

52
  public Date getCreatedAt() {
UNCOV
53
    return createdAt;
×
54
  }
55

56
  public String getCompletionReason() {
57
    return completionReason;
1✔
58
  }
59

60
  public AiAgentInfo getAiAgentInfo() {
UNCOV
61
    return aiAgentInfo;
×
62
  }
63

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

79
  @Override
80
  public int hashCode() {
UNCOV
81
    return Objects.hash(answer, createdAt, completionReason, aiAgentInfo);
×
82
  }
83

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

105
  public static class Builder extends NullableFieldTracker {
106

107
    protected final AiExtractResponse answer;
108

109
    protected final Date createdAt;
110

111
    protected String completionReason;
112

113
    protected AiAgentInfo aiAgentInfo;
114

115
    public Builder(AiExtractResponse answer, Date createdAt) {
UNCOV
116
      super();
×
117
      this.answer = answer;
×
118
      this.createdAt = createdAt;
×
UNCOV
119
    }
×
120

121
    public Builder completionReason(String completionReason) {
122
      this.completionReason = completionReason;
×
123
      return this;
×
124
    }
125

126
    public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) {
127
      this.aiAgentInfo = aiAgentInfo;
×
UNCOV
128
      return this;
×
129
    }
130

131
    public AiExtractStructuredResponse build() {
UNCOV
132
      return new AiExtractStructuredResponse(this);
×
133
    }
134
  }
135
}
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