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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

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

11820 existing lines in 631 files now uncovered.

16946 of 47499 relevant lines covered (35.68%)

0.36 hits per line

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

52.94
/src/main/java/com/box/sdkgen/schemas/aitextgen/AiTextGenItemsField.java
1
package com.box.sdkgen.schemas.aitextgen;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
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.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class AiTextGenItemsField extends SerializableObject {
14

15
  protected final String id;
16

17
  @JsonDeserialize(using = AiTextGenItemsTypeField.AiTextGenItemsTypeFieldDeserializer.class)
18
  @JsonSerialize(using = AiTextGenItemsTypeField.AiTextGenItemsTypeFieldSerializer.class)
19
  protected EnumWrapper<AiTextGenItemsTypeField> type;
20

21
  protected String content;
22

23
  public AiTextGenItemsField(@JsonProperty("id") String id) {
24
    super();
×
UNCOV
25
    this.id = id;
×
UNCOV
26
    this.type = new EnumWrapper<AiTextGenItemsTypeField>(AiTextGenItemsTypeField.FILE);
×
UNCOV
27
  }
×
28

29
  protected AiTextGenItemsField(Builder builder) {
30
    super();
1✔
31
    this.id = builder.id;
1✔
32
    this.type = builder.type;
1✔
33
    this.content = builder.content;
1✔
34
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
35
  }
1✔
36

37
  public String getId() {
38
    return id;
1✔
39
  }
40

41
  public EnumWrapper<AiTextGenItemsTypeField> getType() {
42
    return type;
1✔
43
  }
44

45
  public String getContent() {
46
    return content;
1✔
47
  }
48

49
  @Override
50
  public boolean equals(Object o) {
51
    if (this == o) {
×
UNCOV
52
      return true;
×
53
    }
54
    if (o == null || getClass() != o.getClass()) {
×
55
      return false;
×
56
    }
UNCOV
57
    AiTextGenItemsField casted = (AiTextGenItemsField) o;
×
UNCOV
58
    return Objects.equals(id, casted.id)
×
UNCOV
59
        && Objects.equals(type, casted.type)
×
UNCOV
60
        && Objects.equals(content, casted.content);
×
61
  }
62

63
  @Override
64
  public int hashCode() {
UNCOV
65
    return Objects.hash(id, type, content);
×
66
  }
67

68
  @Override
69
  public String toString() {
UNCOV
70
    return "AiTextGenItemsField{"
×
71
        + "id='"
72
        + id
73
        + '\''
74
        + ", "
75
        + "type='"
76
        + type
77
        + '\''
78
        + ", "
79
        + "content='"
80
        + content
81
        + '\''
82
        + "}";
83
  }
84

85
  public static class Builder extends NullableFieldTracker {
86

87
    protected final String id;
88

89
    protected EnumWrapper<AiTextGenItemsTypeField> type;
90

91
    protected String content;
92

93
    public Builder(String id) {
94
      super();
1✔
95
      this.id = id;
1✔
96
      this.type = new EnumWrapper<AiTextGenItemsTypeField>(AiTextGenItemsTypeField.FILE);
1✔
97
    }
1✔
98

99
    public Builder type(AiTextGenItemsTypeField type) {
100
      this.type = new EnumWrapper<AiTextGenItemsTypeField>(type);
1✔
101
      return this;
1✔
102
    }
103

104
    public Builder type(EnumWrapper<AiTextGenItemsTypeField> type) {
UNCOV
105
      this.type = type;
×
UNCOV
106
      return this;
×
107
    }
108

109
    public Builder content(String content) {
110
      this.content = content;
1✔
111
      return this;
1✔
112
    }
113

114
    public AiTextGenItemsField build() {
115
      return new AiTextGenItemsField(this);
1✔
116
    }
117
  }
118
}
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