All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.cloud.pubsublite.beam.AutoValue_OffsetByteProgress Maven / Gradle / Ivy

There is a newer version: 0.23.0
Show newest version
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