com.google.cloud.bigquery.AutoValue_BiEngineReason 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_BiEngineReason extends BiEngineReason {
@Nullable
private final String code;
@Nullable
private final String message;
private AutoValue_BiEngineReason(
@Nullable String code,
@Nullable String message) {
this.code = code;
this.message = message;
}
@Nullable
@Override
public String getCode() {
return code;
}
@Nullable
@Override
public String getMessage() {
return message;
}
@Override
public String toString() {
return "BiEngineReason{"
+ "code=" + code + ", "
+ "message=" + message
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof BiEngineReason) {
BiEngineReason that = (BiEngineReason) o;
return (this.code == null ? that.getCode() == null : this.code.equals(that.getCode()))
&& (this.message == null ? that.getMessage() == null : this.message.equals(that.getMessage()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (code == null) ? 0 : code.hashCode();
h$ *= 1000003;
h$ ^= (message == null) ? 0 : message.hashCode();
return h$;
}
@Override
public BiEngineReason.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends BiEngineReason.Builder {
private String code;
private String message;
Builder() {
}
private Builder(BiEngineReason source) {
this.code = source.getCode();
this.message = source.getMessage();
}
@Override
public BiEngineReason.Builder setCode(String code) {
this.code = code;
return this;
}
@Override
public BiEngineReason.Builder setMessage(String message) {
this.message = message;
return this;
}
@Override
public BiEngineReason build() {
return new AutoValue_BiEngineReason(
this.code,
this.message);
}
}
}