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

box / box-java-sdk / #5076

07 Oct 2025 12:35PM UTC coverage: 37.132% (+0.007%) from 37.125%
#5076

push

github

web-flow
test: Change `Event.additionalDetails` field assertion in events test (box/box-codegen#858) (#1491)

18454 of 49699 relevant lines covered (37.13%)

0.37 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
  /** The ID of the item. */
16
  protected final String id;
17

18
  /** The type of the item. */
19
  @JsonDeserialize(using = AiTextGenItemsTypeField.AiTextGenItemsTypeFieldDeserializer.class)
20
  @JsonSerialize(using = AiTextGenItemsTypeField.AiTextGenItemsTypeFieldSerializer.class)
21
  protected EnumWrapper<AiTextGenItemsTypeField> type;
22

23
  /** The content to use as context for generating new text or editing existing text. */
24
  protected String content;
25

26
  public AiTextGenItemsField(@JsonProperty("id") String id) {
27
    super();
×
28
    this.id = id;
×
29
    this.type = new EnumWrapper<AiTextGenItemsTypeField>(AiTextGenItemsTypeField.FILE);
×
30
  }
×
31

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

40
  public String getId() {
41
    return id;
1✔
42
  }
43

44
  public EnumWrapper<AiTextGenItemsTypeField> getType() {
45
    return type;
1✔
46
  }
47

48
  public String getContent() {
49
    return content;
1✔
50
  }
51

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

66
  @Override
67
  public int hashCode() {
68
    return Objects.hash(id, type, content);
×
69
  }
70

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

88
  public static class Builder extends NullableFieldTracker {
89

90
    protected final String id;
91

92
    protected EnumWrapper<AiTextGenItemsTypeField> type;
93

94
    protected String content;
95

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

102
    public Builder type(AiTextGenItemsTypeField type) {
103
      this.type = new EnumWrapper<AiTextGenItemsTypeField>(type);
1✔
104
      return this;
1✔
105
    }
106

107
    public Builder type(EnumWrapper<AiTextGenItemsTypeField> type) {
108
      this.type = type;
×
109
      return this;
×
110
    }
111

112
    public Builder content(String content) {
113
      this.content = content;
1✔
114
      return this;
1✔
115
    }
116

117
    public AiTextGenItemsField build() {
118
      return new AiTextGenItemsField(this);
1✔
119
    }
120
  }
121
}
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