com.google.cloud.bigquery.AutoValue_FieldElementType Maven / Gradle / Ivy
The 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_FieldElementType extends FieldElementType {
@Nullable
private final String type;
private AutoValue_FieldElementType(
@Nullable String type) {
this.type = type;
}
@Nullable
@Override
public String getType() {
return type;
}
@Override
public String toString() {
return "FieldElementType{"
+ "type=" + type
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof FieldElementType) {
FieldElementType that = (FieldElementType) o;
return (this.type == null ? that.getType() == null : this.type.equals(that.getType()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (type == null) ? 0 : type.hashCode();
return h$;
}
private static final long serialVersionUID = 1L;
@Override
public FieldElementType.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends FieldElementType.Builder {
private String type;
Builder() {
}
private Builder(FieldElementType source) {
this.type = source.getType();
}
@Override
public FieldElementType.Builder setType(String type) {
this.type = type;
return this;
}
@Override
public FieldElementType build() {
return new AutoValue_FieldElementType(
this.type);
}
}
}