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

box / box-java-sdk-gen / #155

30 May 2025 01:03PM UTC coverage: 35.646% (+0.3%) from 35.311%
#155

push

github

web-flow
fix: Fix downscope token to use `retrieveToken` method for token retrieval (box/box-codegen#731) (#320)

4 of 4 new or added lines in 4 files covered. (100.0%)

2952 existing lines in 99 files now uncovered.

15628 of 43842 relevant lines covered (35.65%)

0.36 hits per line

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

14.71
/src/main/java/com/box/sdkgen/schemas/aiextractstructuredresponse/AiExtractStructuredResponse.java
1
package com.box.sdkgen.schemas.aiextractstructuredresponse;
2

3
import com.box.sdkgen.internal.SerializableObject;
4
import com.box.sdkgen.internal.utils.DateTimeUtils;
5
import com.box.sdkgen.schemas.aiagentinfo.AiAgentInfo;
6
import com.box.sdkgen.schemas.aiextractresponse.AiExtractResponse;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Date;
11
import java.util.Objects;
12

13
public class AiExtractStructuredResponse extends SerializableObject {
14

15
  protected final AiExtractResponse answer;
16

17
  @JsonProperty("created_at")
18
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
19
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
20
  protected final Date createdAt;
21

22
  @JsonProperty("completion_reason")
23
  protected String completionReason;
24

25
  @JsonProperty("ai_agent_info")
26
  protected AiAgentInfo aiAgentInfo;
27

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

36
  protected AiExtractStructuredResponse(AiExtractStructuredResponseBuilder builder) {
UNCOV
37
    super();
×
UNCOV
38
    this.answer = builder.answer;
×
39
    this.createdAt = builder.createdAt;
×
UNCOV
40
    this.completionReason = builder.completionReason;
×
UNCOV
41
    this.aiAgentInfo = builder.aiAgentInfo;
×
UNCOV
42
  }
×
43

44
  public AiExtractResponse getAnswer() {
UNCOV
45
    return answer;
×
46
  }
47

48
  public Date getCreatedAt() {
UNCOV
49
    return createdAt;
×
50
  }
51

52
  public String getCompletionReason() {
53
    return completionReason;
1✔
54
  }
55

56
  public AiAgentInfo getAiAgentInfo() {
57
    return aiAgentInfo;
×
58
  }
59

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

75
  @Override
76
  public int hashCode() {
UNCOV
77
    return Objects.hash(answer, createdAt, completionReason, aiAgentInfo);
×
78
  }
79

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

101
  public static class AiExtractStructuredResponseBuilder {
102

103
    protected final AiExtractResponse answer;
104

105
    protected final Date createdAt;
106

107
    protected String completionReason;
108

109
    protected AiAgentInfo aiAgentInfo;
110

111
    public AiExtractStructuredResponseBuilder(AiExtractResponse answer, Date createdAt) {
×
112
      this.answer = answer;
×
UNCOV
113
      this.createdAt = createdAt;
×
UNCOV
114
    }
×
115

116
    public AiExtractStructuredResponseBuilder completionReason(String completionReason) {
117
      this.completionReason = completionReason;
×
UNCOV
118
      return this;
×
119
    }
120

121
    public AiExtractStructuredResponseBuilder aiAgentInfo(AiAgentInfo aiAgentInfo) {
UNCOV
122
      this.aiAgentInfo = aiAgentInfo;
×
UNCOV
123
      return this;
×
124
    }
125

126
    public AiExtractStructuredResponse build() {
UNCOV
127
      return new AiExtractStructuredResponse(this);
×
128
    }
129
  }
130
}
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