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

box / box-java-sdk / #6244

10 Feb 2026 05:27PM UTC coverage: 40.749% (+22.6%) from 18.192%
#6244

push

github

web-flow
fix(boxsdkgen): Move assigning default values from builder constructor to `build()` method (box/box-codegen#922) (#1712)

0 of 1677 new or added lines in 569 files covered. (0.0%)

2146 existing lines in 544 files now uncovered.

7382 of 18116 relevant lines covered (40.75%)

0.46 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/transcriptskillcard/TranscriptSkillCardInvocationField.java
1
package com.box.sdkgen.schemas.transcriptskillcard;
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 TranscriptSkillCardInvocationField extends SerializableObject {
14

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

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

33
  public TranscriptSkillCardInvocationField(@JsonProperty("id") String id) {
34
    super();
×
35
    this.id = id;
×
36
    this.type =
×
37
        new EnumWrapper<TranscriptSkillCardInvocationTypeField>(
38
            TranscriptSkillCardInvocationTypeField.SKILL_INVOCATION);
39
  }
×
40

41
  protected TranscriptSkillCardInvocationField(Builder builder) {
42
    super();
×
43
    this.type = builder.type;
×
44
    this.id = builder.id;
×
45
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
46
  }
×
47

48
  public EnumWrapper<TranscriptSkillCardInvocationTypeField> getType() {
49
    return type;
×
50
  }
51

52
  public String getId() {
53
    return id;
×
54
  }
55

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

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

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

86
  public static class Builder extends NullableFieldTracker {
87

88
    protected EnumWrapper<TranscriptSkillCardInvocationTypeField> type;
89

90
    protected final String id;
91

92
    public Builder(String id) {
93
      super();
×
94
      this.id = id;
×
95
    }
×
96

97
    public Builder type(TranscriptSkillCardInvocationTypeField type) {
UNCOV
98
      this.type = new EnumWrapper<TranscriptSkillCardInvocationTypeField>(type);
×
UNCOV
99
      return this;
×
100
    }
101

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

107
    public TranscriptSkillCardInvocationField build() {
NEW
108
      if (this.type == null) {
×
NEW
109
        this.type =
×
110
            new EnumWrapper<TranscriptSkillCardInvocationTypeField>(
111
                TranscriptSkillCardInvocationTypeField.SKILL_INVOCATION);
112
      }
UNCOV
113
      return new TranscriptSkillCardInvocationField(this);
×
114
    }
115
  }
116
}
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