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

com.google.cloud.hadoop.gcsio.AutoValue_ObjectWriteConditions Maven / Gradle / Ivy

package com.google.cloud.hadoop.gcsio;

import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ObjectWriteConditions extends ObjectWriteConditions {

  @Nullable
  private final Long metaGenerationMatch;

  @Nullable
  private final Long contentGenerationMatch;

  private AutoValue_ObjectWriteConditions(
      @Nullable Long metaGenerationMatch,
      @Nullable Long contentGenerationMatch) {
    this.metaGenerationMatch = metaGenerationMatch;
    this.contentGenerationMatch = contentGenerationMatch;
  }

  @Nullable
  @Override
  public Long getMetaGenerationMatch() {
    return metaGenerationMatch;
  }

  @Nullable
  @Override
  public Long getContentGenerationMatch() {
    return contentGenerationMatch;
  }

  @Override
  public String toString() {
    return "ObjectWriteConditions{"
        + "metaGenerationMatch=" + metaGenerationMatch + ", "
        + "contentGenerationMatch=" + contentGenerationMatch
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ObjectWriteConditions) {
      ObjectWriteConditions that = (ObjectWriteConditions) o;
      return (this.metaGenerationMatch == null ? that.getMetaGenerationMatch() == null : this.metaGenerationMatch.equals(that.getMetaGenerationMatch()))
          && (this.contentGenerationMatch == null ? that.getContentGenerationMatch() == null : this.contentGenerationMatch.equals(that.getContentGenerationMatch()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= (metaGenerationMatch == null) ? 0 : metaGenerationMatch.hashCode();
    h$ *= 1000003;
    h$ ^= (contentGenerationMatch == null) ? 0 : contentGenerationMatch.hashCode();
    return h$;
  }

  @Override
  public ObjectWriteConditions.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends ObjectWriteConditions.Builder {
    private Long metaGenerationMatch;
    private Long contentGenerationMatch;
    Builder() {
    }
    private Builder(ObjectWriteConditions source) {
      this.metaGenerationMatch = source.getMetaGenerationMatch();
      this.contentGenerationMatch = source.getContentGenerationMatch();
    }
    @Override
    public ObjectWriteConditions.Builder setMetaGenerationMatch(Long metaGenerationMatch) {
      this.metaGenerationMatch = metaGenerationMatch;
      return this;
    }
    @Override
    public ObjectWriteConditions.Builder setContentGenerationMatch(Long contentGenerationMatch) {
      this.contentGenerationMatch = contentGenerationMatch;
      return this;
    }
    @Override
    public ObjectWriteConditions build() {
      return new AutoValue_ObjectWriteConditions(
          this.metaGenerationMatch,
          this.contentGenerationMatch);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy