com.google.cloud.AutoValue_Condition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloud-core Show documentation
Show all versions of google-cloud-core Show documentation
Core module for the google-cloud.
package com.google.cloud;
import javax.annotation.Generated;
import javax.annotation.Nullable;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Condition extends Condition {
@Nullable
private final String title;
@Nullable
private final String description;
private final String expression;
private AutoValue_Condition(
@Nullable String title,
@Nullable String description,
String expression) {
this.title = title;
this.description = description;
this.expression = expression;
}
@Nullable
@Override
public String getTitle() {
return title;
}
@Nullable
@Override
public String getDescription() {
return description;
}
@Override
public String getExpression() {
return expression;
}
@Override
public String toString() {
return "Condition{"
+ "title=" + title + ", "
+ "description=" + description + ", "
+ "expression=" + expression
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof Condition) {
Condition that = (Condition) o;
return (this.title == null ? that.getTitle() == null : this.title.equals(that.getTitle()))
&& (this.description == null ? that.getDescription() == null : this.description.equals(that.getDescription()))
&& this.expression.equals(that.getExpression());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (title == null) ? 0 : title.hashCode();
h$ *= 1000003;
h$ ^= (description == null) ? 0 : description.hashCode();
h$ *= 1000003;
h$ ^= expression.hashCode();
return h$;
}
@Override
public Condition.Builder toBuilder() {
return new AutoValue_Condition.Builder(this);
}
static final class Builder extends Condition.Builder {
private String title;
private String description;
private String expression;
Builder() {
}
Builder(Condition source) {
this.title = source.getTitle();
this.description = source.getDescription();
this.expression = source.getExpression();
}
@Override
public Condition.Builder setTitle(@Nullable String title) {
this.title = title;
return this;
}
@Override
public Condition.Builder setDescription(@Nullable String description) {
this.description = description;
return this;
}
@Override
public Condition.Builder setExpression(String expression) {
if (expression == null) {
throw new NullPointerException("Null expression");
}
this.expression = expression;
return this;
}
@Override
public Condition build() {
if (this.expression == null) {
String missing = " expression";
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_Condition(
this.title,
this.description,
this.expression);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy