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

com.google.cloud.bigquery.AutoValue_PolicyTags Maven / Gradle / Ivy

package com.google.cloud.bigquery;

import com.google.common.collect.ImmutableList;
import javax.annotation.Generated;
import javax.annotation.Nullable;

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

  private final ImmutableList namesImmut;

  private AutoValue_PolicyTags(
      @Nullable ImmutableList namesImmut) {
    this.namesImmut = namesImmut;
  }

  @Nullable
  @Override
  ImmutableList getNamesImmut() {
    return namesImmut;
  }

  @Override
  public String toString() {
    return "PolicyTags{"
        + "namesImmut=" + namesImmut
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof PolicyTags) {
      PolicyTags that = (PolicyTags) o;
      return (this.namesImmut == null ? that.getNamesImmut() == null : this.namesImmut.equals(that.getNamesImmut()));
    }
    return false;
  }

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

  private static final long serialVersionUID = 1L;

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

  static final class Builder extends PolicyTags.Builder {
    private ImmutableList namesImmut;
    Builder() {
    }
    private Builder(PolicyTags source) {
      this.namesImmut = source.getNamesImmut();
    }
    @Override
    PolicyTags.Builder setNamesImmut(ImmutableList namesImmut) {
      this.namesImmut = namesImmut;
      return this;
    }
    @Override
    public PolicyTags build() {
      return new AutoValue_PolicyTags(
          this.namesImmut);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy