com.google.cloud.bigquery.AutoValue_BigLakeConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloud-bigquery Show documentation
Show all versions of google-cloud-bigquery Show documentation
Java idiomatic client for Google Cloud BigQuery.
package com.google.cloud.bigquery;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_BigLakeConfiguration extends BigLakeConfiguration {
private final String connectionId;
private final String fileFormat;
private final String storageUri;
private final String tableFormat;
private AutoValue_BigLakeConfiguration(
String connectionId,
String fileFormat,
String storageUri,
String tableFormat) {
this.connectionId = connectionId;
this.fileFormat = fileFormat;
this.storageUri = storageUri;
this.tableFormat = tableFormat;
}
@Override
public String getConnectionId() {
return connectionId;
}
@Override
public String getFileFormat() {
return fileFormat;
}
@Override
public String getStorageUri() {
return storageUri;
}
@Override
public String getTableFormat() {
return tableFormat;
}
@Override
public String toString() {
return "BigLakeConfiguration{"
+ "connectionId=" + connectionId + ", "
+ "fileFormat=" + fileFormat + ", "
+ "storageUri=" + storageUri + ", "
+ "tableFormat=" + tableFormat
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BigLakeConfiguration) {
BigLakeConfiguration that = (BigLakeConfiguration) o;
return this.connectionId.equals(that.getConnectionId())
&& this.fileFormat.equals(that.getFileFormat())
&& this.storageUri.equals(that.getStorageUri())
&& this.tableFormat.equals(that.getTableFormat());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= connectionId.hashCode();
h$ *= 1000003;
h$ ^= fileFormat.hashCode();
h$ *= 1000003;
h$ ^= storageUri.hashCode();
h$ *= 1000003;
h$ ^= tableFormat.hashCode();
return h$;
}
private static final long serialVersionUID = -5951589238459622025L;
@Override
public BigLakeConfiguration.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends BigLakeConfiguration.Builder {
private String connectionId;
private String fileFormat;
private String storageUri;
private String tableFormat;
Builder() {
}
private Builder(BigLakeConfiguration source) {
this.connectionId = source.getConnectionId();
this.fileFormat = source.getFileFormat();
this.storageUri = source.getStorageUri();
this.tableFormat = source.getTableFormat();
}
@Override
public BigLakeConfiguration.Builder setConnectionId(String connectionId) {
if (connectionId == null) {
throw new NullPointerException("Null connectionId");
}
this.connectionId = connectionId;
return this;
}
@Override
public BigLakeConfiguration.Builder setFileFormat(String fileFormat) {
if (fileFormat == null) {
throw new NullPointerException("Null fileFormat");
}
this.fileFormat = fileFormat;
return this;
}
@Override
public BigLakeConfiguration.Builder setStorageUri(String storageUri) {
if (storageUri == null) {
throw new NullPointerException("Null storageUri");
}
this.storageUri = storageUri;
return this;
}
@Override
public BigLakeConfiguration.Builder setTableFormat(String tableFormat) {
if (tableFormat == null) {
throw new NullPointerException("Null tableFormat");
}
this.tableFormat = tableFormat;
return this;
}
@Override
public BigLakeConfiguration build() {
if (this.connectionId == null
|| this.fileFormat == null
|| this.storageUri == null
|| this.tableFormat == null) {
StringBuilder missing = new StringBuilder();
if (this.connectionId == null) {
missing.append(" connectionId");
}
if (this.fileFormat == null) {
missing.append(" fileFormat");
}
if (this.storageUri == null) {
missing.append(" storageUri");
}
if (this.tableFormat == null) {
missing.append(" tableFormat");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_BigLakeConfiguration(
this.connectionId,
this.fileFormat,
this.storageUri,
this.tableFormat);
}
}
}