com.google.cloud.bigquery.AutoValue_RoutineArgument Maven / Gradle / Ivy
package com.google.cloud.bigquery;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RoutineArgument extends RoutineArgument {
@Nullable
private final String name;
@Nullable
private final String kind;
@Nullable
private final String mode;
@Nullable
private final StandardSQLDataType dataType;
private AutoValue_RoutineArgument(
@Nullable String name,
@Nullable String kind,
@Nullable String mode,
@Nullable StandardSQLDataType dataType) {
this.name = name;
this.kind = kind;
this.mode = mode;
this.dataType = dataType;
}
@Nullable
@Override
public String getName() {
return name;
}
@Nullable
@Override
public String getKind() {
return kind;
}
@Nullable
@Override
public String getMode() {
return mode;
}
@Nullable
@Override
public StandardSQLDataType getDataType() {
return dataType;
}
@Override
public String toString() {
return "RoutineArgument{"
+ "name=" + name + ", "
+ "kind=" + kind + ", "
+ "mode=" + mode + ", "
+ "dataType=" + dataType
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RoutineArgument) {
RoutineArgument that = (RoutineArgument) o;
return (this.name == null ? that.getName() == null : this.name.equals(that.getName()))
&& (this.kind == null ? that.getKind() == null : this.kind.equals(that.getKind()))
&& (this.mode == null ? that.getMode() == null : this.mode.equals(that.getMode()))
&& (this.dataType == null ? that.getDataType() == null : this.dataType.equals(that.getDataType()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (name == null) ? 0 : name.hashCode();
h$ *= 1000003;
h$ ^= (kind == null) ? 0 : kind.hashCode();
h$ *= 1000003;
h$ ^= (mode == null) ? 0 : mode.hashCode();
h$ *= 1000003;
h$ ^= (dataType == null) ? 0 : dataType.hashCode();
return h$;
}
@Override
public RoutineArgument.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends RoutineArgument.Builder {
private String name;
private String kind;
private String mode;
private StandardSQLDataType dataType;
Builder() {
}
private Builder(RoutineArgument source) {
this.name = source.getName();
this.kind = source.getKind();
this.mode = source.getMode();
this.dataType = source.getDataType();
}
@Override
public RoutineArgument.Builder setName(String name) {
this.name = name;
return this;
}
@Override
public RoutineArgument.Builder setKind(String kind) {
this.kind = kind;
return this;
}
@Override
public RoutineArgument.Builder setMode(String mode) {
this.mode = mode;
return this;
}
@Override
public RoutineArgument.Builder setDataType(StandardSQLDataType dataType) {
this.dataType = dataType;
return this;
}
@Override
public RoutineArgument build() {
return new AutoValue_RoutineArgument(
this.name,
this.kind,
this.mode,
this.dataType);
}
}
}