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

box / box-java-sdk-gen / #296

25 Jun 2025 10:12AM UTC coverage: 35.677% (-0.05%) from 35.723%
#296

Pull #348

github

web-flow
Merge d48b178e0 into d8480ee6c
Pull Request #348: chore: Update .codegen.json with commit hash of codegen and openapi spec

68 of 82 new or added lines in 2 files covered. (82.93%)

11820 existing lines in 631 files now uncovered.

16946 of 47499 relevant lines covered (35.68%)

0.36 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/metadataqueryindex/MetadataQueryIndex.java
1
package com.box.sdkgen.schemas.metadataqueryindex;
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.List;
11
import java.util.Objects;
12

13
@JsonFilter("nullablePropertyFilter")
14
public class MetadataQueryIndex extends SerializableObject {
15

16
  protected String id;
17

18
  protected final String type;
19

20
  @JsonDeserialize(
21
      using = MetadataQueryIndexStatusField.MetadataQueryIndexStatusFieldDeserializer.class)
22
  @JsonSerialize(
23
      using = MetadataQueryIndexStatusField.MetadataQueryIndexStatusFieldSerializer.class)
24
  protected final EnumWrapper<MetadataQueryIndexStatusField> status;
25

26
  protected List<MetadataQueryIndexFieldsField> fields;
27

28
  public MetadataQueryIndex(
29
      @JsonProperty("type") String type,
30
      @JsonProperty("status") EnumWrapper<MetadataQueryIndexStatusField> status) {
31
    super();
×
UNCOV
32
    this.type = type;
×
UNCOV
33
    this.status = status;
×
34
  }
×
35

36
  public MetadataQueryIndex(String type, MetadataQueryIndexStatusField status) {
37
    super();
×
UNCOV
38
    this.type = type;
×
UNCOV
39
    this.status = new EnumWrapper<MetadataQueryIndexStatusField>(status);
×
40
  }
×
41

42
  protected MetadataQueryIndex(Builder builder) {
43
    super();
×
44
    this.id = builder.id;
×
45
    this.type = builder.type;
×
UNCOV
46
    this.status = builder.status;
×
UNCOV
47
    this.fields = builder.fields;
×
48
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
49
  }
×
50

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

55
  public String getType() {
56
    return type;
×
57
  }
58

59
  public EnumWrapper<MetadataQueryIndexStatusField> getStatus() {
60
    return status;
×
61
  }
62

63
  public List<MetadataQueryIndexFieldsField> getFields() {
UNCOV
64
    return fields;
×
65
  }
66

67
  @Override
68
  public boolean equals(Object o) {
69
    if (this == o) {
×
UNCOV
70
      return true;
×
71
    }
72
    if (o == null || getClass() != o.getClass()) {
×
73
      return false;
×
74
    }
75
    MetadataQueryIndex casted = (MetadataQueryIndex) o;
×
UNCOV
76
    return Objects.equals(id, casted.id)
×
UNCOV
77
        && Objects.equals(type, casted.type)
×
UNCOV
78
        && Objects.equals(status, casted.status)
×
UNCOV
79
        && Objects.equals(fields, casted.fields);
×
80
  }
81

82
  @Override
83
  public int hashCode() {
UNCOV
84
    return Objects.hash(id, type, status, fields);
×
85
  }
86

87
  @Override
88
  public String toString() {
UNCOV
89
    return "MetadataQueryIndex{"
×
90
        + "id='"
91
        + id
92
        + '\''
93
        + ", "
94
        + "type='"
95
        + type
96
        + '\''
97
        + ", "
98
        + "status='"
99
        + status
100
        + '\''
101
        + ", "
102
        + "fields='"
103
        + fields
104
        + '\''
105
        + "}";
106
  }
107

108
  public static class Builder extends NullableFieldTracker {
109

110
    protected String id;
111

112
    protected final String type;
113

114
    protected final EnumWrapper<MetadataQueryIndexStatusField> status;
115

116
    protected List<MetadataQueryIndexFieldsField> fields;
117

118
    public Builder(String type, EnumWrapper<MetadataQueryIndexStatusField> status) {
119
      super();
×
120
      this.type = type;
×
121
      this.status = status;
×
122
    }
×
123

124
    public Builder(String type, MetadataQueryIndexStatusField status) {
125
      super();
×
126
      this.type = type;
×
UNCOV
127
      this.status = new EnumWrapper<MetadataQueryIndexStatusField>(status);
×
UNCOV
128
    }
×
129

130
    public Builder id(String id) {
131
      this.id = id;
×
UNCOV
132
      return this;
×
133
    }
134

135
    public Builder fields(List<MetadataQueryIndexFieldsField> fields) {
UNCOV
136
      this.fields = fields;
×
UNCOV
137
      return this;
×
138
    }
139

140
    public MetadataQueryIndex build() {
UNCOV
141
      return new MetadataQueryIndex(this);
×
142
    }
143
  }
144
}
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