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

box / box-java-sdk-gen / #361

14 Jul 2025 11:20AM UTC coverage: 38.075% (+2.5%) from 35.58%
#361

push

github

web-flow
feat: Support common union fields and implicit union conversion (box/box-codegen#758) (#361)

288 of 1203 new or added lines in 106 files covered. (23.94%)

165 existing lines in 43 files now uncovered.

18537 of 48685 relevant lines covered (38.08%)

0.38 hits per line

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

0.0
/src/main/java/com/box/sdkgen/schemas/skillinvocation/SkillInvocation.java
1
package com.box.sdkgen.schemas.skillinvocation;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.schemas.event.Event;
7
import com.box.sdkgen.schemas.file.File;
8
import com.box.sdkgen.schemas.fileorfolder.FileOrFolder;
9
import com.box.sdkgen.schemas.folder.Folder;
10
import com.box.sdkgen.serialization.json.EnumWrapper;
11
import com.fasterxml.jackson.annotation.JsonFilter;
12
import com.fasterxml.jackson.annotation.JsonProperty;
13
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
14
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
15
import java.util.Date;
16
import java.util.Objects;
17

18
@JsonFilter("nullablePropertyFilter")
19
public class SkillInvocation extends SerializableObject {
20

21
  @JsonDeserialize(using = SkillInvocationTypeField.SkillInvocationTypeFieldDeserializer.class)
22
  @JsonSerialize(using = SkillInvocationTypeField.SkillInvocationTypeFieldSerializer.class)
23
  protected EnumWrapper<SkillInvocationTypeField> type;
24

25
  protected String id;
26

27
  protected SkillInvocationSkillField skill;
28

29
  protected SkillInvocationTokenField token;
30

31
  protected SkillInvocationStatusField status;
32

33
  @JsonProperty("created_at")
34
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
35
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
36
  protected Date createdAt;
37

38
  protected String trigger;
39

40
  protected SkillInvocationEnterpriseField enterprise;
41

42
  protected FileOrFolder source;
43

44
  protected Event event;
45

46
  public SkillInvocation() {
47
    super();
×
48
  }
×
49

50
  protected SkillInvocation(Builder builder) {
51
    super();
×
52
    this.type = builder.type;
×
53
    this.id = builder.id;
×
54
    this.skill = builder.skill;
×
55
    this.token = builder.token;
×
56
    this.status = builder.status;
×
57
    this.createdAt = builder.createdAt;
×
58
    this.trigger = builder.trigger;
×
59
    this.enterprise = builder.enterprise;
×
60
    this.source = builder.source;
×
61
    this.event = builder.event;
×
62
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
63
  }
×
64

65
  public EnumWrapper<SkillInvocationTypeField> getType() {
66
    return type;
×
67
  }
68

69
  public String getId() {
70
    return id;
×
71
  }
72

73
  public SkillInvocationSkillField getSkill() {
74
    return skill;
×
75
  }
76

77
  public SkillInvocationTokenField getToken() {
78
    return token;
×
79
  }
80

81
  public SkillInvocationStatusField getStatus() {
82
    return status;
×
83
  }
84

85
  public Date getCreatedAt() {
86
    return createdAt;
×
87
  }
88

89
  public String getTrigger() {
90
    return trigger;
×
91
  }
92

93
  public SkillInvocationEnterpriseField getEnterprise() {
94
    return enterprise;
×
95
  }
96

97
  public FileOrFolder getSource() {
98
    return source;
×
99
  }
100

101
  public Event getEvent() {
102
    return event;
×
103
  }
104

105
  @Override
106
  public boolean equals(Object o) {
107
    if (this == o) {
×
108
      return true;
×
109
    }
110
    if (o == null || getClass() != o.getClass()) {
×
111
      return false;
×
112
    }
113
    SkillInvocation casted = (SkillInvocation) o;
×
114
    return Objects.equals(type, casted.type)
×
115
        && Objects.equals(id, casted.id)
×
116
        && Objects.equals(skill, casted.skill)
×
117
        && Objects.equals(token, casted.token)
×
118
        && Objects.equals(status, casted.status)
×
119
        && Objects.equals(createdAt, casted.createdAt)
×
120
        && Objects.equals(trigger, casted.trigger)
×
121
        && Objects.equals(enterprise, casted.enterprise)
×
122
        && Objects.equals(source, casted.source)
×
123
        && Objects.equals(event, casted.event);
×
124
  }
125

126
  @Override
127
  public int hashCode() {
128
    return Objects.hash(
×
129
        type, id, skill, token, status, createdAt, trigger, enterprise, source, event);
130
  }
131

132
  @Override
133
  public String toString() {
134
    return "SkillInvocation{"
×
135
        + "type='"
136
        + type
137
        + '\''
138
        + ", "
139
        + "id='"
140
        + id
141
        + '\''
142
        + ", "
143
        + "skill='"
144
        + skill
145
        + '\''
146
        + ", "
147
        + "token='"
148
        + token
149
        + '\''
150
        + ", "
151
        + "status='"
152
        + status
153
        + '\''
154
        + ", "
155
        + "createdAt='"
156
        + createdAt
157
        + '\''
158
        + ", "
159
        + "trigger='"
160
        + trigger
161
        + '\''
162
        + ", "
163
        + "enterprise='"
164
        + enterprise
165
        + '\''
166
        + ", "
167
        + "source='"
168
        + source
169
        + '\''
170
        + ", "
171
        + "event='"
172
        + event
173
        + '\''
174
        + "}";
175
  }
176

177
  public static class Builder extends NullableFieldTracker {
×
178

179
    protected EnumWrapper<SkillInvocationTypeField> type;
180

181
    protected String id;
182

183
    protected SkillInvocationSkillField skill;
184

185
    protected SkillInvocationTokenField token;
186

187
    protected SkillInvocationStatusField status;
188

189
    protected Date createdAt;
190

191
    protected String trigger;
192

193
    protected SkillInvocationEnterpriseField enterprise;
194

195
    protected FileOrFolder source;
196

197
    protected Event event;
198

199
    public Builder type(SkillInvocationTypeField type) {
200
      this.type = new EnumWrapper<SkillInvocationTypeField>(type);
×
201
      return this;
×
202
    }
203

204
    public Builder type(EnumWrapper<SkillInvocationTypeField> type) {
205
      this.type = type;
×
206
      return this;
×
207
    }
208

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

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

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

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

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

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

239
    public Builder enterprise(SkillInvocationEnterpriseField enterprise) {
240
      this.enterprise = enterprise;
×
241
      return this;
×
242
    }
243

244
    public Builder source(File source) {
NEW
245
      this.source = new FileOrFolder(source);
×
NEW
246
      return this;
×
247
    }
248

249
    public Builder source(Folder source) {
NEW
250
      this.source = new FileOrFolder(source);
×
NEW
251
      return this;
×
252
    }
253

254
    public Builder source(FileOrFolder source) {
255
      this.source = source;
×
256
      return this;
×
257
    }
258

259
    public Builder event(Event event) {
260
      this.event = event;
×
261
      return this;
×
262
    }
263

264
    public SkillInvocation build() {
265
      return new SkillInvocation(this);
×
266
    }
267
  }
268
}
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