com.google.cloud.bigquery.AutoValue_ConnectionSettings 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 java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ConnectionSettings extends ConnectionSettings {
@Nullable
private final Boolean useReadAPI;
@Nullable
private final Long requestTimeout;
@Nullable
private final List connectionProperties;
@Nullable
private final DatasetId defaultDataset;
@Nullable
private final Long maximumBytesBilled;
@Nullable
private final Long maxResults;
@Nullable
private final Integer numBufferedRows;
@Nullable
private final Integer totalToPageRowCountRatio;
@Nullable
private final Integer minResultSize;
@Nullable
private final Integer maxResultPerPage;
@Nullable
private final Boolean useQueryCache;
@Nullable
private final Boolean flattenResults;
@Nullable
private final Clustering clustering;
@Nullable
private final JobInfo.CreateDisposition createDisposition;
@Nullable
private final EncryptionConfiguration destinationEncryptionConfiguration;
@Nullable
private final TableId destinationTable;
@Nullable
private final Long jobTimeoutMs;
@Nullable
private final Integer maximumBillingTier;
@Nullable
private final QueryJobConfiguration.Priority priority;
@Nullable
private final Boolean allowLargeResults;
@Nullable
private final Boolean createSession;
@Nullable
private final RangePartitioning rangePartitioning;
@Nullable
private final List schemaUpdateOptions;
@Nullable
private final Map tableDefinitions;
@Nullable
private final TimePartitioning timePartitioning;
@Nullable
private final List userDefinedFunctions;
@Nullable
private final JobInfo.WriteDisposition writeDisposition;
private AutoValue_ConnectionSettings(
@Nullable Boolean useReadAPI,
@Nullable Long requestTimeout,
@Nullable List connectionProperties,
@Nullable DatasetId defaultDataset,
@Nullable Long maximumBytesBilled,
@Nullable Long maxResults,
@Nullable Integer numBufferedRows,
@Nullable Integer totalToPageRowCountRatio,
@Nullable Integer minResultSize,
@Nullable Integer maxResultPerPage,
@Nullable Boolean useQueryCache,
@Nullable Boolean flattenResults,
@Nullable Clustering clustering,
@Nullable JobInfo.CreateDisposition createDisposition,
@Nullable EncryptionConfiguration destinationEncryptionConfiguration,
@Nullable TableId destinationTable,
@Nullable Long jobTimeoutMs,
@Nullable Integer maximumBillingTier,
@Nullable QueryJobConfiguration.Priority priority,
@Nullable Boolean allowLargeResults,
@Nullable Boolean createSession,
@Nullable RangePartitioning rangePartitioning,
@Nullable List schemaUpdateOptions,
@Nullable Map tableDefinitions,
@Nullable TimePartitioning timePartitioning,
@Nullable List userDefinedFunctions,
@Nullable JobInfo.WriteDisposition writeDisposition) {
this.useReadAPI = useReadAPI;
this.requestTimeout = requestTimeout;
this.connectionProperties = connectionProperties;
this.defaultDataset = defaultDataset;
this.maximumBytesBilled = maximumBytesBilled;
this.maxResults = maxResults;
this.numBufferedRows = numBufferedRows;
this.totalToPageRowCountRatio = totalToPageRowCountRatio;
this.minResultSize = minResultSize;
this.maxResultPerPage = maxResultPerPage;
this.useQueryCache = useQueryCache;
this.flattenResults = flattenResults;
this.clustering = clustering;
this.createDisposition = createDisposition;
this.destinationEncryptionConfiguration = destinationEncryptionConfiguration;
this.destinationTable = destinationTable;
this.jobTimeoutMs = jobTimeoutMs;
this.maximumBillingTier = maximumBillingTier;
this.priority = priority;
this.allowLargeResults = allowLargeResults;
this.createSession = createSession;
this.rangePartitioning = rangePartitioning;
this.schemaUpdateOptions = schemaUpdateOptions;
this.tableDefinitions = tableDefinitions;
this.timePartitioning = timePartitioning;
this.userDefinedFunctions = userDefinedFunctions;
this.writeDisposition = writeDisposition;
}
@Nullable
@Override
public Boolean getUseReadAPI() {
return useReadAPI;
}
@Nullable
@Override
public Long getRequestTimeout() {
return requestTimeout;
}
@Nullable
@Override
public List getConnectionProperties() {
return connectionProperties;
}
@Nullable
@Override
public DatasetId getDefaultDataset() {
return defaultDataset;
}
@Nullable
@Override
public Long getMaximumBytesBilled() {
return maximumBytesBilled;
}
@Nullable
@Override
public Long getMaxResults() {
return maxResults;
}
@Nullable
@Override
public Integer getNumBufferedRows() {
return numBufferedRows;
}
@Nullable
@Override
public Integer getTotalToPageRowCountRatio() {
return totalToPageRowCountRatio;
}
@Nullable
@Override
public Integer getMinResultSize() {
return minResultSize;
}
@Nullable
@Override
public Integer getMaxResultPerPage() {
return maxResultPerPage;
}
@Nullable
@Override
public Boolean getUseQueryCache() {
return useQueryCache;
}
@Nullable
@Override
public Boolean getFlattenResults() {
return flattenResults;
}
@Nullable
@Override
public Clustering getClustering() {
return clustering;
}
@Nullable
@Override
public JobInfo.CreateDisposition getCreateDisposition() {
return createDisposition;
}
@Nullable
@Override
public EncryptionConfiguration getDestinationEncryptionConfiguration() {
return destinationEncryptionConfiguration;
}
@Nullable
@Override
public TableId getDestinationTable() {
return destinationTable;
}
@Nullable
@Override
public Long getJobTimeoutMs() {
return jobTimeoutMs;
}
@Nullable
@Override
public Integer getMaximumBillingTier() {
return maximumBillingTier;
}
@Nullable
@Override
public QueryJobConfiguration.Priority getPriority() {
return priority;
}
@Nullable
@Override
public Boolean getAllowLargeResults() {
return allowLargeResults;
}
@Nullable
@Override
public Boolean getCreateSession() {
return createSession;
}
@Nullable
@Override
public RangePartitioning getRangePartitioning() {
return rangePartitioning;
}
@Nullable
@Override
public List getSchemaUpdateOptions() {
return schemaUpdateOptions;
}
@Nullable
@Override
public Map getTableDefinitions() {
return tableDefinitions;
}
@Nullable
@Override
public TimePartitioning getTimePartitioning() {
return timePartitioning;
}
@Nullable
@Override
public List getUserDefinedFunctions() {
return userDefinedFunctions;
}
@Nullable
@Override
public JobInfo.WriteDisposition getWriteDisposition() {
return writeDisposition;
}
@Override
public String toString() {
return "ConnectionSettings{"
+ "useReadAPI=" + useReadAPI + ", "
+ "requestTimeout=" + requestTimeout + ", "
+ "connectionProperties=" + connectionProperties + ", "
+ "defaultDataset=" + defaultDataset + ", "
+ "maximumBytesBilled=" + maximumBytesBilled + ", "
+ "maxResults=" + maxResults + ", "
+ "numBufferedRows=" + numBufferedRows + ", "
+ "totalToPageRowCountRatio=" + totalToPageRowCountRatio + ", "
+ "minResultSize=" + minResultSize + ", "
+ "maxResultPerPage=" + maxResultPerPage + ", "
+ "useQueryCache=" + useQueryCache + ", "
+ "flattenResults=" + flattenResults + ", "
+ "clustering=" + clustering + ", "
+ "createDisposition=" + createDisposition + ", "
+ "destinationEncryptionConfiguration=" + destinationEncryptionConfiguration + ", "
+ "destinationTable=" + destinationTable + ", "
+ "jobTimeoutMs=" + jobTimeoutMs + ", "
+ "maximumBillingTier=" + maximumBillingTier + ", "
+ "priority=" + priority + ", "
+ "allowLargeResults=" + allowLargeResults + ", "
+ "createSession=" + createSession + ", "
+ "rangePartitioning=" + rangePartitioning + ", "
+ "schemaUpdateOptions=" + schemaUpdateOptions + ", "
+ "tableDefinitions=" + tableDefinitions + ", "
+ "timePartitioning=" + timePartitioning + ", "
+ "userDefinedFunctions=" + userDefinedFunctions + ", "
+ "writeDisposition=" + writeDisposition
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ConnectionSettings) {
ConnectionSettings that = (ConnectionSettings) o;
return (this.useReadAPI == null ? that.getUseReadAPI() == null : this.useReadAPI.equals(that.getUseReadAPI()))
&& (this.requestTimeout == null ? that.getRequestTimeout() == null : this.requestTimeout.equals(that.getRequestTimeout()))
&& (this.connectionProperties == null ? that.getConnectionProperties() == null : this.connectionProperties.equals(that.getConnectionProperties()))
&& (this.defaultDataset == null ? that.getDefaultDataset() == null : this.defaultDataset.equals(that.getDefaultDataset()))
&& (this.maximumBytesBilled == null ? that.getMaximumBytesBilled() == null : this.maximumBytesBilled.equals(that.getMaximumBytesBilled()))
&& (this.maxResults == null ? that.getMaxResults() == null : this.maxResults.equals(that.getMaxResults()))
&& (this.numBufferedRows == null ? that.getNumBufferedRows() == null : this.numBufferedRows.equals(that.getNumBufferedRows()))
&& (this.totalToPageRowCountRatio == null ? that.getTotalToPageRowCountRatio() == null : this.totalToPageRowCountRatio.equals(that.getTotalToPageRowCountRatio()))
&& (this.minResultSize == null ? that.getMinResultSize() == null : this.minResultSize.equals(that.getMinResultSize()))
&& (this.maxResultPerPage == null ? that.getMaxResultPerPage() == null : this.maxResultPerPage.equals(that.getMaxResultPerPage()))
&& (this.useQueryCache == null ? that.getUseQueryCache() == null : this.useQueryCache.equals(that.getUseQueryCache()))
&& (this.flattenResults == null ? that.getFlattenResults() == null : this.flattenResults.equals(that.getFlattenResults()))
&& (this.clustering == null ? that.getClustering() == null : this.clustering.equals(that.getClustering()))
&& (this.createDisposition == null ? that.getCreateDisposition() == null : this.createDisposition.equals(that.getCreateDisposition()))
&& (this.destinationEncryptionConfiguration == null ? that.getDestinationEncryptionConfiguration() == null : this.destinationEncryptionConfiguration.equals(that.getDestinationEncryptionConfiguration()))
&& (this.destinationTable == null ? that.getDestinationTable() == null : this.destinationTable.equals(that.getDestinationTable()))
&& (this.jobTimeoutMs == null ? that.getJobTimeoutMs() == null : this.jobTimeoutMs.equals(that.getJobTimeoutMs()))
&& (this.maximumBillingTier == null ? that.getMaximumBillingTier() == null : this.maximumBillingTier.equals(that.getMaximumBillingTier()))
&& (this.priority == null ? that.getPriority() == null : this.priority.equals(that.getPriority()))
&& (this.allowLargeResults == null ? that.getAllowLargeResults() == null : this.allowLargeResults.equals(that.getAllowLargeResults()))
&& (this.createSession == null ? that.getCreateSession() == null : this.createSession.equals(that.getCreateSession()))
&& (this.rangePartitioning == null ? that.getRangePartitioning() == null : this.rangePartitioning.equals(that.getRangePartitioning()))
&& (this.schemaUpdateOptions == null ? that.getSchemaUpdateOptions() == null : this.schemaUpdateOptions.equals(that.getSchemaUpdateOptions()))
&& (this.tableDefinitions == null ? that.getTableDefinitions() == null : this.tableDefinitions.equals(that.getTableDefinitions()))
&& (this.timePartitioning == null ? that.getTimePartitioning() == null : this.timePartitioning.equals(that.getTimePartitioning()))
&& (this.userDefinedFunctions == null ? that.getUserDefinedFunctions() == null : this.userDefinedFunctions.equals(that.getUserDefinedFunctions()))
&& (this.writeDisposition == null ? that.getWriteDisposition() == null : this.writeDisposition.equals(that.getWriteDisposition()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (useReadAPI == null) ? 0 : useReadAPI.hashCode();
h$ *= 1000003;
h$ ^= (requestTimeout == null) ? 0 : requestTimeout.hashCode();
h$ *= 1000003;
h$ ^= (connectionProperties == null) ? 0 : connectionProperties.hashCode();
h$ *= 1000003;
h$ ^= (defaultDataset == null) ? 0 : defaultDataset.hashCode();
h$ *= 1000003;
h$ ^= (maximumBytesBilled == null) ? 0 : maximumBytesBilled.hashCode();
h$ *= 1000003;
h$ ^= (maxResults == null) ? 0 : maxResults.hashCode();
h$ *= 1000003;
h$ ^= (numBufferedRows == null) ? 0 : numBufferedRows.hashCode();
h$ *= 1000003;
h$ ^= (totalToPageRowCountRatio == null) ? 0 : totalToPageRowCountRatio.hashCode();
h$ *= 1000003;
h$ ^= (minResultSize == null) ? 0 : minResultSize.hashCode();
h$ *= 1000003;
h$ ^= (maxResultPerPage == null) ? 0 : maxResultPerPage.hashCode();
h$ *= 1000003;
h$ ^= (useQueryCache == null) ? 0 : useQueryCache.hashCode();
h$ *= 1000003;
h$ ^= (flattenResults == null) ? 0 : flattenResults.hashCode();
h$ *= 1000003;
h$ ^= (clustering == null) ? 0 : clustering.hashCode();
h$ *= 1000003;
h$ ^= (createDisposition == null) ? 0 : createDisposition.hashCode();
h$ *= 1000003;
h$ ^= (destinationEncryptionConfiguration == null) ? 0 : destinationEncryptionConfiguration.hashCode();
h$ *= 1000003;
h$ ^= (destinationTable == null) ? 0 : destinationTable.hashCode();
h$ *= 1000003;
h$ ^= (jobTimeoutMs == null) ? 0 : jobTimeoutMs.hashCode();
h$ *= 1000003;
h$ ^= (maximumBillingTier == null) ? 0 : maximumBillingTier.hashCode();
h$ *= 1000003;
h$ ^= (priority == null) ? 0 : priority.hashCode();
h$ *= 1000003;
h$ ^= (allowLargeResults == null) ? 0 : allowLargeResults.hashCode();
h$ *= 1000003;
h$ ^= (createSession == null) ? 0 : createSession.hashCode();
h$ *= 1000003;
h$ ^= (rangePartitioning == null) ? 0 : rangePartitioning.hashCode();
h$ *= 1000003;
h$ ^= (schemaUpdateOptions == null) ? 0 : schemaUpdateOptions.hashCode();
h$ *= 1000003;
h$ ^= (tableDefinitions == null) ? 0 : tableDefinitions.hashCode();
h$ *= 1000003;
h$ ^= (timePartitioning == null) ? 0 : timePartitioning.hashCode();
h$ *= 1000003;
h$ ^= (userDefinedFunctions == null) ? 0 : userDefinedFunctions.hashCode();
h$ *= 1000003;
h$ ^= (writeDisposition == null) ? 0 : writeDisposition.hashCode();
return h$;
}
@Override
public ConnectionSettings.Builder toBuilder() {
return new AutoValue_ConnectionSettings.Builder(this);
}
static final class Builder extends ConnectionSettings.Builder {
private Boolean useReadAPI;
private Long requestTimeout;
private List connectionProperties;
private DatasetId defaultDataset;
private Long maximumBytesBilled;
private Long maxResults;
private Integer numBufferedRows;
private Integer totalToPageRowCountRatio;
private Integer minResultSize;
private Integer maxResultPerPage;
private Boolean useQueryCache;
private Boolean flattenResults;
private Clustering clustering;
private JobInfo.CreateDisposition createDisposition;
private EncryptionConfiguration destinationEncryptionConfiguration;
private TableId destinationTable;
private Long jobTimeoutMs;
private Integer maximumBillingTier;
private QueryJobConfiguration.Priority priority;
private Boolean allowLargeResults;
private Boolean createSession;
private RangePartitioning rangePartitioning;
private List schemaUpdateOptions;
private Map tableDefinitions;
private TimePartitioning timePartitioning;
private List userDefinedFunctions;
private JobInfo.WriteDisposition writeDisposition;
Builder() {
}
Builder(ConnectionSettings source) {
this.useReadAPI = source.getUseReadAPI();
this.requestTimeout = source.getRequestTimeout();
this.connectionProperties = source.getConnectionProperties();
this.defaultDataset = source.getDefaultDataset();
this.maximumBytesBilled = source.getMaximumBytesBilled();
this.maxResults = source.getMaxResults();
this.numBufferedRows = source.getNumBufferedRows();
this.totalToPageRowCountRatio = source.getTotalToPageRowCountRatio();
this.minResultSize = source.getMinResultSize();
this.maxResultPerPage = source.getMaxResultPerPage();
this.useQueryCache = source.getUseQueryCache();
this.flattenResults = source.getFlattenResults();
this.clustering = source.getClustering();
this.createDisposition = source.getCreateDisposition();
this.destinationEncryptionConfiguration = source.getDestinationEncryptionConfiguration();
this.destinationTable = source.getDestinationTable();
this.jobTimeoutMs = source.getJobTimeoutMs();
this.maximumBillingTier = source.getMaximumBillingTier();
this.priority = source.getPriority();
this.allowLargeResults = source.getAllowLargeResults();
this.createSession = source.getCreateSession();
this.rangePartitioning = source.getRangePartitioning();
this.schemaUpdateOptions = source.getSchemaUpdateOptions();
this.tableDefinitions = source.getTableDefinitions();
this.timePartitioning = source.getTimePartitioning();
this.userDefinedFunctions = source.getUserDefinedFunctions();
this.writeDisposition = source.getWriteDisposition();
}
@Override
public ConnectionSettings.Builder setUseReadAPI(Boolean useReadAPI) {
this.useReadAPI = useReadAPI;
return this;
}
@Override
public ConnectionSettings.Builder setRequestTimeout(Long requestTimeout) {
this.requestTimeout = requestTimeout;
return this;
}
@Override
public ConnectionSettings.Builder setConnectionProperties(List connectionProperties) {
this.connectionProperties = connectionProperties;
return this;
}
@Override
public ConnectionSettings.Builder setDefaultDataset(DatasetId defaultDataset) {
this.defaultDataset = defaultDataset;
return this;
}
@Override
public ConnectionSettings.Builder setMaximumBytesBilled(Long maximumBytesBilled) {
this.maximumBytesBilled = maximumBytesBilled;
return this;
}
@Override
public ConnectionSettings.Builder setMaxResults(Long maxResults) {
this.maxResults = maxResults;
return this;
}
@Override
public ConnectionSettings.Builder setNumBufferedRows(Integer numBufferedRows) {
this.numBufferedRows = numBufferedRows;
return this;
}
@Override
public ConnectionSettings.Builder setTotalToPageRowCountRatio(Integer totalToPageRowCountRatio) {
this.totalToPageRowCountRatio = totalToPageRowCountRatio;
return this;
}
@Override
public ConnectionSettings.Builder setMinResultSize(Integer minResultSize) {
this.minResultSize = minResultSize;
return this;
}
@Override
public ConnectionSettings.Builder setMaxResultPerPage(Integer maxResultPerPage) {
this.maxResultPerPage = maxResultPerPage;
return this;
}
@Override
public ConnectionSettings.Builder setUseQueryCache(Boolean useQueryCache) {
this.useQueryCache = useQueryCache;
return this;
}
@Override
public ConnectionSettings.Builder setFlattenResults(Boolean flattenResults) {
this.flattenResults = flattenResults;
return this;
}
@Override
public ConnectionSettings.Builder setClustering(Clustering clustering) {
this.clustering = clustering;
return this;
}
@Override
public ConnectionSettings.Builder setCreateDisposition(JobInfo.CreateDisposition createDisposition) {
this.createDisposition = createDisposition;
return this;
}
@Override
public ConnectionSettings.Builder setDestinationEncryptionConfiguration(EncryptionConfiguration destinationEncryptionConfiguration) {
this.destinationEncryptionConfiguration = destinationEncryptionConfiguration;
return this;
}
@Override
public ConnectionSettings.Builder setDestinationTable(TableId destinationTable) {
this.destinationTable = destinationTable;
return this;
}
@Override
public ConnectionSettings.Builder setJobTimeoutMs(Long jobTimeoutMs) {
this.jobTimeoutMs = jobTimeoutMs;
return this;
}
@Override
public ConnectionSettings.Builder setMaximumBillingTier(Integer maximumBillingTier) {
this.maximumBillingTier = maximumBillingTier;
return this;
}
@Override
public ConnectionSettings.Builder setPriority(QueryJobConfiguration.Priority priority) {
this.priority = priority;
return this;
}
@Override
public ConnectionSettings.Builder setAllowLargeResults(Boolean allowLargeResults) {
this.allowLargeResults = allowLargeResults;
return this;
}
@Override
public ConnectionSettings.Builder setCreateSession(Boolean createSession) {
this.createSession = createSession;
return this;
}
@Override
public ConnectionSettings.Builder setRangePartitioning(RangePartitioning rangePartitioning) {
this.rangePartitioning = rangePartitioning;
return this;
}
@Override
public ConnectionSettings.Builder setSchemaUpdateOptions(List schemaUpdateOptions) {
this.schemaUpdateOptions = schemaUpdateOptions;
return this;
}
@Override
public ConnectionSettings.Builder setTableDefinitions(Map tableDefinitions) {
this.tableDefinitions = tableDefinitions;
return this;
}
@Override
public ConnectionSettings.Builder setTimePartitioning(TimePartitioning timePartitioning) {
this.timePartitioning = timePartitioning;
return this;
}
@Override
public ConnectionSettings.Builder setUserDefinedFunctions(List userDefinedFunctions) {
this.userDefinedFunctions = userDefinedFunctions;
return this;
}
@Override
public ConnectionSettings.Builder setWriteDisposition(JobInfo.WriteDisposition writeDisposition) {
this.writeDisposition = writeDisposition;
return this;
}
@Override
public ConnectionSettings build() {
return new AutoValue_ConnectionSettings(
this.useReadAPI,
this.requestTimeout,
this.connectionProperties,
this.defaultDataset,
this.maximumBytesBilled,
this.maxResults,
this.numBufferedRows,
this.totalToPageRowCountRatio,
this.minResultSize,
this.maxResultPerPage,
this.useQueryCache,
this.flattenResults,
this.clustering,
this.createDisposition,
this.destinationEncryptionConfiguration,
this.destinationTable,
this.jobTimeoutMs,
this.maximumBillingTier,
this.priority,
this.allowLargeResults,
this.createSession,
this.rangePartitioning,
this.schemaUpdateOptions,
this.tableDefinitions,
this.timePartitioning,
this.userDefinedFunctions,
this.writeDisposition);
}
}
}