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

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

There is a newer version: 2.44.0
Show newest version
package com.google.cloud.bigquery;

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

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

  @Nullable
  private final String connection;

  @Nullable
  private final String externalSource;

  private AutoValue_ExternalDatasetReference(
      @Nullable String connection,
      @Nullable String externalSource) {
    this.connection = connection;
    this.externalSource = externalSource;
  }

  @Nullable
  @Override
  public String getConnection() {
    return connection;
  }

  @Nullable
  @Override
  public String getExternalSource() {
    return externalSource;
  }

  @Override
  public String toString() {
    return "ExternalDatasetReference{"
        + "connection=" + connection + ", "
        + "externalSource=" + externalSource
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ExternalDatasetReference) {
      ExternalDatasetReference that = (ExternalDatasetReference) o;
      return (this.connection == null ? that.getConnection() == null : this.connection.equals(that.getConnection()))
          && (this.externalSource == null ? that.getExternalSource() == null : this.externalSource.equals(that.getExternalSource()));
    }
    return false;
  }

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

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

  static final class Builder extends ExternalDatasetReference.Builder {
    private String connection;
    private String externalSource;
    Builder() {
    }
    private Builder(ExternalDatasetReference source) {
      this.connection = source.getConnection();
      this.externalSource = source.getExternalSource();
    }
    @Override
    public ExternalDatasetReference.Builder setConnection(String connection) {
      this.connection = connection;
      return this;
    }
    @Override
    public ExternalDatasetReference.Builder setExternalSource(String externalSource) {
      this.externalSource = externalSource;
      return this;
    }
    @Override
    public ExternalDatasetReference build() {
      return new AutoValue_ExternalDatasetReference(
          this.connection,
          this.externalSource);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy