com.google.cloud.pubsublite.beam.AutoValue_OffsetByteProgress Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pubsublite-beam-io Show documentation
Show all versions of pubsublite-beam-io Show documentation
Beam IO for Google Cloud Pub/Sub Lite
package com.google.cloud.pubsublite.beam;
import com.google.cloud.pubsublite.Offset;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_OffsetByteProgress extends OffsetByteProgress {
private final Offset lastOffset;
private final long batchBytes;
AutoValue_OffsetByteProgress(
Offset lastOffset,
long batchBytes) {
if (lastOffset == null) {
throw new NullPointerException("Null lastOffset");
}
this.lastOffset = lastOffset;
this.batchBytes = batchBytes;
}
@Override
Offset lastOffset() {
return lastOffset;
}
@Override
long batchBytes() {
return batchBytes;
}
@Override
public String toString() {
return "OffsetByteProgress{"
+ "lastOffset=" + lastOffset + ", "
+ "batchBytes=" + batchBytes
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof OffsetByteProgress) {
OffsetByteProgress that = (OffsetByteProgress) o;
return this.lastOffset.equals(that.lastOffset())
&& this.batchBytes == that.batchBytes();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= lastOffset.hashCode();
h$ *= 1000003;
h$ ^= (int) ((batchBytes >>> 32) ^ batchBytes);
return h$;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy