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

box / box-java-sdk-gen / #294

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

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%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

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

7.14
/src/main/java/com/box/sdkgen/schemas/airesponsefull/AiResponseFull.java
1
package com.box.sdkgen.schemas.airesponsefull;
2

3
import com.box.sdkgen.schemas.aiagentinfo.AiAgentInfo;
4
import com.box.sdkgen.schemas.aicitation.AiCitation;
5
import com.box.sdkgen.schemas.airesponse.AiResponse;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Date;
9
import java.util.List;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class AiResponseFull extends AiResponse {
14

15
  protected List<AiCitation> citations;
16

17
  public AiResponseFull(
18
      @JsonProperty("answer") String answer, @JsonProperty("created_at") Date createdAt) {
19
    super(answer, createdAt);
1✔
20
  }
1✔
21

22
  protected AiResponseFull(Builder builder) {
23
    super(builder);
×
UNCOV
24
    this.citations = builder.citations;
×
UNCOV
25
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
26
  }
×
27

28
  public List<AiCitation> getCitations() {
UNCOV
29
    return citations;
×
30
  }
31

32
  @Override
33
  public boolean equals(Object o) {
34
    if (this == o) {
×
35
      return true;
×
36
    }
37
    if (o == null || getClass() != o.getClass()) {
×
38
      return false;
×
39
    }
40
    AiResponseFull casted = (AiResponseFull) o;
×
41
    return Objects.equals(answer, casted.answer)
×
42
        && Objects.equals(createdAt, casted.createdAt)
×
UNCOV
43
        && Objects.equals(completionReason, casted.completionReason)
×
UNCOV
44
        && Objects.equals(aiAgentInfo, casted.aiAgentInfo)
×
UNCOV
45
        && Objects.equals(citations, casted.citations);
×
46
  }
47

48
  @Override
49
  public int hashCode() {
UNCOV
50
    return Objects.hash(answer, createdAt, completionReason, aiAgentInfo, citations);
×
51
  }
52

53
  @Override
54
  public String toString() {
UNCOV
55
    return "AiResponseFull{"
×
56
        + "answer='"
57
        + answer
58
        + '\''
59
        + ", "
60
        + "createdAt='"
61
        + createdAt
62
        + '\''
63
        + ", "
64
        + "completionReason='"
65
        + completionReason
66
        + '\''
67
        + ", "
68
        + "aiAgentInfo='"
69
        + aiAgentInfo
70
        + '\''
71
        + ", "
72
        + "citations='"
73
        + citations
74
        + '\''
75
        + "}";
76
  }
77

78
  public static class Builder extends AiResponse.Builder {
79

80
    protected List<AiCitation> citations;
81

82
    public Builder(String answer, Date createdAt) {
UNCOV
83
      super(answer, createdAt);
×
84
    }
×
85

86
    public Builder citations(List<AiCitation> citations) {
UNCOV
87
      this.citations = citations;
×
UNCOV
88
      return this;
×
89
    }
90

91
    @Override
92
    public Builder completionReason(String completionReason) {
UNCOV
93
      this.completionReason = completionReason;
×
UNCOV
94
      return this;
×
95
    }
96

97
    @Override
98
    public Builder aiAgentInfo(AiAgentInfo aiAgentInfo) {
UNCOV
99
      this.aiAgentInfo = aiAgentInfo;
×
UNCOV
100
      return this;
×
101
    }
102

103
    public AiResponseFull build() {
UNCOV
104
      return new AiResponseFull(this);
×
105
    }
106
  }
107
}
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