
org.jclouds.googlecloudstorage.domain.AutoValue_ResumableUpload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jclouds-shaded Show documentation
Show all versions of jclouds-shaded Show documentation
Provides a shaded jclouds with relocated guava and guice
The newest version!
package org.jclouds.googlecloudstorage.domain;
import javax.annotation.Generated;
import org.jclouds.javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ResumableUpload extends ResumableUpload {
private final int statusCode;
private final String uploadId;
private final String contentLength;
private final Long rangeLowerValue;
private final Long rangeUpperValue;
AutoValue_ResumableUpload(
int statusCode,
@Nullable String uploadId,
@Nullable String contentLength,
@Nullable Long rangeLowerValue,
@Nullable Long rangeUpperValue) {
this.statusCode = statusCode;
this.uploadId = uploadId;
this.contentLength = contentLength;
this.rangeLowerValue = rangeLowerValue;
this.rangeUpperValue = rangeUpperValue;
}
@Override
public int statusCode() {
return statusCode;
}
@Nullable
@Override
public String uploadId() {
return uploadId;
}
@Nullable
@Override
public String contentLength() {
return contentLength;
}
@Nullable
@Override
public Long rangeLowerValue() {
return rangeLowerValue;
}
@Nullable
@Override
public Long rangeUpperValue() {
return rangeUpperValue;
}
@Override
public String toString() {
return "ResumableUpload{"
+ "statusCode=" + statusCode + ", "
+ "uploadId=" + uploadId + ", "
+ "contentLength=" + contentLength + ", "
+ "rangeLowerValue=" + rangeLowerValue + ", "
+ "rangeUpperValue=" + rangeUpperValue
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ResumableUpload) {
ResumableUpload that = (ResumableUpload) o;
return (this.statusCode == that.statusCode())
&& ((this.uploadId == null) ? (that.uploadId() == null) : this.uploadId.equals(that.uploadId()))
&& ((this.contentLength == null) ? (that.contentLength() == null) : this.contentLength.equals(that.contentLength()))
&& ((this.rangeLowerValue == null) ? (that.rangeLowerValue() == null) : this.rangeLowerValue.equals(that.rangeLowerValue()))
&& ((this.rangeUpperValue == null) ? (that.rangeUpperValue() == null) : this.rangeUpperValue.equals(that.rangeUpperValue()));
}
return false;
}
@Override
public int hashCode() {
int h = 1;
h *= 1000003;
h ^= this.statusCode;
h *= 1000003;
h ^= (uploadId == null) ? 0 : this.uploadId.hashCode();
h *= 1000003;
h ^= (contentLength == null) ? 0 : this.contentLength.hashCode();
h *= 1000003;
h ^= (rangeLowerValue == null) ? 0 : this.rangeLowerValue.hashCode();
h *= 1000003;
h ^= (rangeUpperValue == null) ? 0 : this.rangeUpperValue.hashCode();
return h;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy