• 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

64.29
/src/main/java/com/box/sdkgen/schemas/keywordskillcard/KeywordSkillCardInvocationField.java
1
package com.box.sdkgen.schemas.keywordskillcard;
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 KeywordSkillCardInvocationField extends SerializableObject {
14

15
  /** The value will always be `skill_invocation`. */
16
  @JsonDeserialize(
17
      using =
18
          KeywordSkillCardInvocationTypeField.KeywordSkillCardInvocationTypeFieldDeserializer.class)
19
  @JsonSerialize(
20
      using =
21
          KeywordSkillCardInvocationTypeField.KeywordSkillCardInvocationTypeFieldSerializer.class)
22
  protected EnumWrapper<KeywordSkillCardInvocationTypeField> type;
23

24
  /**
25
   * A custom identifier that represent the instance of the service that applied this metadata. For
26
   * example, if your `image-recognition-service` runs on multiple nodes, this field can be used to
27
   * identify the ID of the node that was used to apply the metadata.
28
   */
29
  protected final String id;
30

31
  public KeywordSkillCardInvocationField(@JsonProperty("id") String id) {
32
    super();
1✔
33
    this.id = id;
1✔
34
    this.type =
1✔
35
        new EnumWrapper<KeywordSkillCardInvocationTypeField>(
36
            KeywordSkillCardInvocationTypeField.SKILL_INVOCATION);
37
  }
1✔
38

39
  protected KeywordSkillCardInvocationField(Builder builder) {
40
    super();
1✔
41
    this.type = builder.type;
1✔
42
    this.id = builder.id;
1✔
43
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
1✔
44
  }
1✔
45

46
  public EnumWrapper<KeywordSkillCardInvocationTypeField> getType() {
47
    return type;
1✔
48
  }
49

50
  public String getId() {
51
    return id;
1✔
52
  }
53

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

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

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

84
  public static class Builder extends NullableFieldTracker {
85

86
    protected EnumWrapper<KeywordSkillCardInvocationTypeField> type;
87

88
    protected final String id;
89

90
    public Builder(String id) {
91
      super();
1✔
92
      this.id = id;
1✔
93
      this.type =
1✔
94
          new EnumWrapper<KeywordSkillCardInvocationTypeField>(
95
              KeywordSkillCardInvocationTypeField.SKILL_INVOCATION);
96
    }
1✔
97

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

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

108
    public KeywordSkillCardInvocationField build() {
109
      return new KeywordSkillCardInvocationField(this);
1✔
110
    }
111
  }
112
}
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