com.google.cloud.bigquery.AutoValue_CloneDefinition 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;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CloneDefinition extends CloneDefinition {
@Nullable
private final TableId baseTableId;
@Nullable
private final String cloneTime;
private AutoValue_CloneDefinition(
@Nullable TableId baseTableId,
@Nullable String cloneTime) {
this.baseTableId = baseTableId;
this.cloneTime = cloneTime;
}
@Nullable
@Override
public TableId getBaseTableId() {
return baseTableId;
}
@Nullable
@Override
public String getCloneTime() {
return cloneTime;
}
@Override
public String toString() {
return "CloneDefinition{"
+ "baseTableId=" + baseTableId + ", "
+ "cloneTime=" + cloneTime
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof CloneDefinition) {
CloneDefinition that = (CloneDefinition) o;
return (this.baseTableId == null ? that.getBaseTableId() == null : this.baseTableId.equals(that.getBaseTableId()))
&& (this.cloneTime == null ? that.getCloneTime() == null : this.cloneTime.equals(that.getCloneTime()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (baseTableId == null) ? 0 : baseTableId.hashCode();
h$ *= 1000003;
h$ ^= (cloneTime == null) ? 0 : cloneTime.hashCode();
return h$;
}
private static final long serialVersionUID = 1460853787400450649L;
@Override
public CloneDefinition.Builder toBuilder() {
return new AutoValue_CloneDefinition.Builder(this);
}
static final class Builder extends CloneDefinition.Builder {
private TableId baseTableId;
private String cloneTime;
Builder() {
}
Builder(CloneDefinition source) {
this.baseTableId = source.getBaseTableId();
this.cloneTime = source.getCloneTime();
}
@Override
public CloneDefinition.Builder setBaseTableId(TableId baseTableId) {
this.baseTableId = baseTableId;
return this;
}
@Override
public CloneDefinition.Builder setCloneTime(String cloneTime) {
this.cloneTime = cloneTime;
return this;
}
@Override
public CloneDefinition build() {
return new AutoValue_CloneDefinition(
this.baseTableId,
this.cloneTime);
}
}
}