• 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

64.44
/src/main/java/com/box/sdkgen/schemas/aiextractstructured/AiExtractStructuredFieldsField.java
1
package com.box.sdkgen.schemas.aiextractstructured;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.fasterxml.jackson.annotation.JsonFilter;
6
import com.fasterxml.jackson.annotation.JsonProperty;
7
import java.util.List;
8
import java.util.Objects;
9

10
@JsonFilter("nullablePropertyFilter")
11
public class AiExtractStructuredFieldsField extends SerializableObject {
12

13
  protected final String key;
14

15
  protected String description;
16

17
  protected String displayName;
18

19
  protected String prompt;
20

21
  protected String type;
22

23
  protected List<AiExtractStructuredFieldsOptionsField> options;
24

25
  public AiExtractStructuredFieldsField(@JsonProperty("key") String key) {
UNCOV
26
    super();
×
UNCOV
27
    this.key = key;
×
UNCOV
28
  }
×
29

30
  protected AiExtractStructuredFieldsField(Builder builder) {
31
    super();
1✔
32
    this.key = builder.key;
1✔
33
    this.description = builder.description;
1✔
34
    this.displayName = builder.displayName;
1✔
35
    this.prompt = builder.prompt;
1✔
36
    this.type = builder.type;
1✔
37
    this.options = builder.options;
1✔
38
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
39
  }
1✔
40

41
  public String getKey() {
42
    return key;
1✔
43
  }
44

45
  public String getDescription() {
46
    return description;
1✔
47
  }
48

49
  public String getDisplayName() {
50
    return displayName;
1✔
51
  }
52

53
  public String getPrompt() {
54
    return prompt;
1✔
55
  }
56

57
  public String getType() {
58
    return type;
1✔
59
  }
60

61
  public List<AiExtractStructuredFieldsOptionsField> getOptions() {
62
    return options;
1✔
63
  }
64

65
  @Override
66
  public boolean equals(Object o) {
67
    if (this == o) {
×
UNCOV
68
      return true;
×
69
    }
70
    if (o == null || getClass() != o.getClass()) {
×
71
      return false;
×
72
    }
73
    AiExtractStructuredFieldsField casted = (AiExtractStructuredFieldsField) o;
×
74
    return Objects.equals(key, casted.key)
×
75
        && Objects.equals(description, casted.description)
×
UNCOV
76
        && Objects.equals(displayName, casted.displayName)
×
UNCOV
77
        && Objects.equals(prompt, casted.prompt)
×
UNCOV
78
        && Objects.equals(type, casted.type)
×
UNCOV
79
        && Objects.equals(options, casted.options);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
UNCOV
84
    return Objects.hash(key, description, displayName, prompt, type, options);
×
85
  }
86

87
  @Override
88
  public String toString() {
UNCOV
89
    return "AiExtractStructuredFieldsField{"
×
90
        + "key='"
91
        + key
92
        + '\''
93
        + ", "
94
        + "description='"
95
        + description
96
        + '\''
97
        + ", "
98
        + "displayName='"
99
        + displayName
100
        + '\''
101
        + ", "
102
        + "prompt='"
103
        + prompt
104
        + '\''
105
        + ", "
106
        + "type='"
107
        + type
108
        + '\''
109
        + ", "
110
        + "options='"
111
        + options
112
        + '\''
113
        + "}";
114
  }
115

116
  public static class Builder extends NullableFieldTracker {
117

118
    protected final String key;
119

120
    protected String description;
121

122
    protected String displayName;
123

124
    protected String prompt;
125

126
    protected String type;
127

128
    protected List<AiExtractStructuredFieldsOptionsField> options;
129

130
    public Builder(String key) {
131
      super();
1✔
132
      this.key = key;
1✔
133
    }
1✔
134

135
    public Builder description(String description) {
136
      this.description = description;
1✔
137
      return this;
1✔
138
    }
139

140
    public Builder displayName(String displayName) {
141
      this.displayName = displayName;
1✔
142
      return this;
1✔
143
    }
144

145
    public Builder prompt(String prompt) {
146
      this.prompt = prompt;
1✔
147
      return this;
1✔
148
    }
149

150
    public Builder type(String type) {
151
      this.type = type;
1✔
152
      return this;
1✔
153
    }
154

155
    public Builder options(List<AiExtractStructuredFieldsOptionsField> options) {
156
      this.options = options;
1✔
157
      return this;
1✔
158
    }
159

160
    public AiExtractStructuredFieldsField build() {
161
      return new AiExtractStructuredFieldsField(this);
1✔
162
    }
163
  }
164
}
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