• 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

17.07
/src/main/java/com/box/sdkgen/schemas/zipdownloadstatus/ZipDownloadStatus.java
1
package com.box.sdkgen.schemas.zipdownloadstatus;
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
/** The status of a `zip` archive being downloaded. */
13
@JsonFilter("nullablePropertyFilter")
14
public class ZipDownloadStatus extends SerializableObject {
15

16
  /** The total number of files in the archive. */
17
  @JsonProperty("total_file_count")
18
  protected Long totalFileCount;
19

20
  /** The number of files that have already been downloaded. */
21
  @JsonProperty("downloaded_file_count")
22
  protected Long downloadedFileCount;
23

24
  /**
25
   * The number of files that have been skipped as they could not be downloaded. In many cases this
26
   * is due to permission issues that have surfaced between the creation of the request for the
27
   * archive and the archive being downloaded.
28
   */
29
  @JsonProperty("skipped_file_count")
30
  protected Long skippedFileCount;
31

32
  /**
33
   * The number of folders that have been skipped as they could not be downloaded. In many cases
34
   * this is due to permission issues that have surfaced between the creation of the request for the
35
   * archive and the archive being downloaded.
36
   */
37
  @JsonProperty("skipped_folder_count")
38
  protected Long skippedFolderCount;
39

40
  /** The state of the archive being downloaded. */
41
  @JsonDeserialize(
42
      using = ZipDownloadStatusStateField.ZipDownloadStatusStateFieldDeserializer.class)
43
  @JsonSerialize(using = ZipDownloadStatusStateField.ZipDownloadStatusStateFieldSerializer.class)
44
  protected EnumWrapper<ZipDownloadStatusStateField> state;
45

46
  public ZipDownloadStatus() {
47
    super();
1✔
48
  }
1✔
49

50
  protected ZipDownloadStatus(Builder builder) {
51
    super();
×
52
    this.totalFileCount = builder.totalFileCount;
×
53
    this.downloadedFileCount = builder.downloadedFileCount;
×
54
    this.skippedFileCount = builder.skippedFileCount;
×
55
    this.skippedFolderCount = builder.skippedFolderCount;
×
56
    this.state = builder.state;
×
57
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
58
  }
×
59

60
  public Long getTotalFileCount() {
61
    return totalFileCount;
1✔
62
  }
63

64
  public Long getDownloadedFileCount() {
65
    return downloadedFileCount;
1✔
66
  }
67

68
  public Long getSkippedFileCount() {
69
    return skippedFileCount;
1✔
70
  }
71

72
  public Long getSkippedFolderCount() {
73
    return skippedFolderCount;
1✔
74
  }
75

76
  public EnumWrapper<ZipDownloadStatusStateField> getState() {
77
    return state;
1✔
78
  }
79

80
  @Override
81
  public boolean equals(Object o) {
82
    if (this == o) {
×
83
      return true;
×
84
    }
85
    if (o == null || getClass() != o.getClass()) {
×
86
      return false;
×
87
    }
88
    ZipDownloadStatus casted = (ZipDownloadStatus) o;
×
89
    return Objects.equals(totalFileCount, casted.totalFileCount)
×
90
        && Objects.equals(downloadedFileCount, casted.downloadedFileCount)
×
91
        && Objects.equals(skippedFileCount, casted.skippedFileCount)
×
92
        && Objects.equals(skippedFolderCount, casted.skippedFolderCount)
×
93
        && Objects.equals(state, casted.state);
×
94
  }
95

96
  @Override
97
  public int hashCode() {
98
    return Objects.hash(
×
99
        totalFileCount, downloadedFileCount, skippedFileCount, skippedFolderCount, state);
100
  }
101

102
  @Override
103
  public String toString() {
104
    return "ZipDownloadStatus{"
×
105
        + "totalFileCount='"
106
        + totalFileCount
107
        + '\''
108
        + ", "
109
        + "downloadedFileCount='"
110
        + downloadedFileCount
111
        + '\''
112
        + ", "
113
        + "skippedFileCount='"
114
        + skippedFileCount
115
        + '\''
116
        + ", "
117
        + "skippedFolderCount='"
118
        + skippedFolderCount
119
        + '\''
120
        + ", "
121
        + "state='"
122
        + state
123
        + '\''
124
        + "}";
125
  }
126

127
  public static class Builder extends NullableFieldTracker {
×
128

129
    protected Long totalFileCount;
130

131
    protected Long downloadedFileCount;
132

133
    protected Long skippedFileCount;
134

135
    protected Long skippedFolderCount;
136

137
    protected EnumWrapper<ZipDownloadStatusStateField> state;
138

139
    public Builder totalFileCount(Long totalFileCount) {
140
      this.totalFileCount = totalFileCount;
×
141
      return this;
×
142
    }
143

144
    public Builder downloadedFileCount(Long downloadedFileCount) {
145
      this.downloadedFileCount = downloadedFileCount;
×
146
      return this;
×
147
    }
148

149
    public Builder skippedFileCount(Long skippedFileCount) {
150
      this.skippedFileCount = skippedFileCount;
×
151
      return this;
×
152
    }
153

154
    public Builder skippedFolderCount(Long skippedFolderCount) {
155
      this.skippedFolderCount = skippedFolderCount;
×
156
      return this;
×
157
    }
158

159
    public Builder state(ZipDownloadStatusStateField state) {
160
      this.state = new EnumWrapper<ZipDownloadStatusStateField>(state);
×
161
      return this;
×
162
    }
163

164
    public Builder state(EnumWrapper<ZipDownloadStatusStateField> state) {
165
      this.state = state;
×
166
      return this;
×
167
    }
168

169
    public ZipDownloadStatus build() {
170
      return new ZipDownloadStatus(this);
×
171
    }
172
  }
173
}
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