• 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/MetadataQueryIndexFieldsField.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.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class MetadataQueryIndexFieldsField extends SerializableObject {
14

15
  protected String key;
16

17
  @JsonDeserialize(
18
      using =
19
          MetadataQueryIndexFieldsSortDirectionField
20
              .MetadataQueryIndexFieldsSortDirectionFieldDeserializer.class)
21
  @JsonSerialize(
22
      using =
23
          MetadataQueryIndexFieldsSortDirectionField
24
              .MetadataQueryIndexFieldsSortDirectionFieldSerializer.class)
25
  @JsonProperty("sort_direction")
26
  protected EnumWrapper<MetadataQueryIndexFieldsSortDirectionField> sortDirection;
27

28
  public MetadataQueryIndexFieldsField() {
UNCOV
29
    super();
×
30
  }
×
31

32
  protected MetadataQueryIndexFieldsField(Builder builder) {
33
    super();
×
UNCOV
34
    this.key = builder.key;
×
UNCOV
35
    this.sortDirection = builder.sortDirection;
×
36
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
37
  }
×
38

39
  public String getKey() {
40
    return key;
×
41
  }
42

43
  public EnumWrapper<MetadataQueryIndexFieldsSortDirectionField> getSortDirection() {
UNCOV
44
    return sortDirection;
×
45
  }
46

47
  @Override
48
  public boolean equals(Object o) {
49
    if (this == o) {
×
UNCOV
50
      return true;
×
51
    }
52
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
53
      return false;
×
54
    }
UNCOV
55
    MetadataQueryIndexFieldsField casted = (MetadataQueryIndexFieldsField) o;
×
UNCOV
56
    return Objects.equals(key, casted.key) && Objects.equals(sortDirection, casted.sortDirection);
×
57
  }
58

59
  @Override
60
  public int hashCode() {
UNCOV
61
    return Objects.hash(key, sortDirection);
×
62
  }
63

64
  @Override
65
  public String toString() {
UNCOV
66
    return "MetadataQueryIndexFieldsField{"
×
67
        + "key='"
68
        + key
69
        + '\''
70
        + ", "
71
        + "sortDirection='"
72
        + sortDirection
73
        + '\''
74
        + "}";
75
  }
76

UNCOV
77
  public static class Builder extends NullableFieldTracker {
×
78

79
    protected String key;
80

81
    protected EnumWrapper<MetadataQueryIndexFieldsSortDirectionField> sortDirection;
82

83
    public Builder key(String key) {
UNCOV
84
      this.key = key;
×
85
      return this;
×
86
    }
87

88
    public Builder sortDirection(MetadataQueryIndexFieldsSortDirectionField sortDirection) {
UNCOV
89
      this.sortDirection =
×
90
          new EnumWrapper<MetadataQueryIndexFieldsSortDirectionField>(sortDirection);
UNCOV
91
      return this;
×
92
    }
93

94
    public Builder sortDirection(
95
        EnumWrapper<MetadataQueryIndexFieldsSortDirectionField> sortDirection) {
UNCOV
96
      this.sortDirection = sortDirection;
×
97
      return this;
×
98
    }
99

100
    public MetadataQueryIndexFieldsField build() {
UNCOV
101
      return new MetadataQueryIndexFieldsField(this);
×
102
    }
103
  }
104
}
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