• 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

5.08
/src/main/java/com/box/sdkgen/schemas/skillcardsmetadata/SkillCardsMetadata.java
1
package com.box.sdkgen.schemas.skillcardsmetadata;
2

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

11
/** The metadata assigned to a using for Box skills. */
12
@JsonFilter("nullablePropertyFilter")
13
public class SkillCardsMetadata extends SerializableObject {
14

15
  /** Whether the user can edit this metadata. */
16
  @JsonProperty("$canEdit")
17
  protected Boolean canEdit;
18

19
  /** A UUID to identify the metadata object. */
20
  @JsonProperty("$id")
21
  protected String id;
22

23
  /** An ID for the parent folder. */
24
  @JsonProperty("$parent")
25
  protected String parent;
26

27
  /** An ID for the scope in which this template has been applied. */
28
  @JsonProperty("$scope")
29
  protected String scope;
30

31
  /** The name of the template. */
32
  @JsonProperty("$template")
33
  protected String template;
34

35
  /**
36
   * A unique identifier for the "type" of this instance. This is an internal system property and
37
   * should not be used by a client application.
38
   */
39
  @JsonProperty("$type")
40
  protected String type;
41

42
  /**
43
   * The last-known version of the template of the object. This is an internal system property and
44
   * should not be used by a client application.
45
   */
46
  @JsonProperty("$typeVersion")
47
  protected Long typeVersion;
48

49
  /**
50
   * The version of the metadata object. Starts at 0 and increases every time a user-defined
51
   * property is modified.
52
   */
53
  @JsonProperty("$version")
54
  protected Long version;
55

56
  /** A list of Box Skill cards that have been applied to this file. */
57
  protected List<SkillCard> cards;
58

59
  public SkillCardsMetadata() {
60
    super();
1✔
61
  }
1✔
62

63
  protected SkillCardsMetadata(Builder builder) {
64
    super();
×
65
    this.canEdit = builder.canEdit;
×
66
    this.id = builder.id;
×
67
    this.parent = builder.parent;
×
68
    this.scope = builder.scope;
×
69
    this.template = builder.template;
×
70
    this.type = builder.type;
×
71
    this.typeVersion = builder.typeVersion;
×
72
    this.version = builder.version;
×
73
    this.cards = builder.cards;
×
74
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
75
  }
×
76

77
  public Boolean getCanEdit() {
78
    return canEdit;
×
79
  }
80

81
  public String getId() {
82
    return id;
×
83
  }
84

85
  public String getParent() {
86
    return parent;
×
87
  }
88

89
  public String getScope() {
90
    return scope;
×
91
  }
92

93
  public String getTemplate() {
94
    return template;
×
95
  }
96

97
  public String getType() {
98
    return type;
×
99
  }
100

101
  public Long getTypeVersion() {
102
    return typeVersion;
×
103
  }
104

105
  public Long getVersion() {
106
    return version;
×
107
  }
108

109
  public List<SkillCard> getCards() {
110
    return cards;
1✔
111
  }
112

113
  @Override
114
  public boolean equals(Object o) {
115
    if (this == o) {
×
116
      return true;
×
117
    }
118
    if (o == null || getClass() != o.getClass()) {
×
119
      return false;
×
120
    }
121
    SkillCardsMetadata casted = (SkillCardsMetadata) o;
×
122
    return Objects.equals(canEdit, casted.canEdit)
×
123
        && Objects.equals(id, casted.id)
×
124
        && Objects.equals(parent, casted.parent)
×
125
        && Objects.equals(scope, casted.scope)
×
126
        && Objects.equals(template, casted.template)
×
127
        && Objects.equals(type, casted.type)
×
128
        && Objects.equals(typeVersion, casted.typeVersion)
×
129
        && Objects.equals(version, casted.version)
×
130
        && Objects.equals(cards, casted.cards);
×
131
  }
132

133
  @Override
134
  public int hashCode() {
135
    return Objects.hash(canEdit, id, parent, scope, template, type, typeVersion, version, cards);
×
136
  }
137

138
  @Override
139
  public String toString() {
140
    return "SkillCardsMetadata{"
×
141
        + "canEdit='"
142
        + canEdit
143
        + '\''
144
        + ", "
145
        + "id='"
146
        + id
147
        + '\''
148
        + ", "
149
        + "parent='"
150
        + parent
151
        + '\''
152
        + ", "
153
        + "scope='"
154
        + scope
155
        + '\''
156
        + ", "
157
        + "template='"
158
        + template
159
        + '\''
160
        + ", "
161
        + "type='"
162
        + type
163
        + '\''
164
        + ", "
165
        + "typeVersion='"
166
        + typeVersion
167
        + '\''
168
        + ", "
169
        + "version='"
170
        + version
171
        + '\''
172
        + ", "
173
        + "cards='"
174
        + cards
175
        + '\''
176
        + "}";
177
  }
178

179
  public static class Builder extends NullableFieldTracker {
×
180

181
    protected Boolean canEdit;
182

183
    protected String id;
184

185
    protected String parent;
186

187
    protected String scope;
188

189
    protected String template;
190

191
    protected String type;
192

193
    protected Long typeVersion;
194

195
    protected Long version;
196

197
    protected List<SkillCard> cards;
198

199
    public Builder canEdit(Boolean canEdit) {
200
      this.canEdit = canEdit;
×
201
      return this;
×
202
    }
203

204
    public Builder id(String id) {
205
      this.id = id;
×
206
      return this;
×
207
    }
208

209
    public Builder parent(String parent) {
210
      this.parent = parent;
×
211
      return this;
×
212
    }
213

214
    public Builder scope(String scope) {
215
      this.scope = scope;
×
216
      return this;
×
217
    }
218

219
    public Builder template(String template) {
220
      this.template = template;
×
221
      return this;
×
222
    }
223

224
    public Builder type(String type) {
225
      this.type = type;
×
226
      return this;
×
227
    }
228

229
    public Builder typeVersion(Long typeVersion) {
230
      this.typeVersion = typeVersion;
×
231
      return this;
×
232
    }
233

234
    public Builder version(Long version) {
235
      this.version = version;
×
236
      return this;
×
237
    }
238

239
    public Builder cards(List<SkillCard> cards) {
240
      this.cards = cards;
×
241
      return this;
×
242
    }
243

244
    public SkillCardsMetadata build() {
245
      return new SkillCardsMetadata(this);
×
246
    }
247
  }
248
}
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