org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport.$AutoValue_ViewWidgetPosition Maven / Gradle / Ivy
package org.graylog.plugins.views.migrations.V20191125144500_MigrateDashboardsToViewsSupport;
import com.fasterxml.jackson.annotation.JsonProperty;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
abstract class $AutoValue_ViewWidgetPosition extends ViewWidgetPosition {
private final int col;
private final int row;
private final int height;
private final int width;
$AutoValue_ViewWidgetPosition(
int col,
int row,
int height,
int width) {
this.col = col;
this.row = row;
this.height = height;
this.width = width;
}
@JsonProperty("col")
@Override
int col() {
return col;
}
@JsonProperty("row")
@Override
int row() {
return row;
}
@JsonProperty("height")
@Override
int height() {
return height;
}
@JsonProperty("width")
@Override
int width() {
return width;
}
@Override
public String toString() {
return "ViewWidgetPosition{"
+ "col=" + col + ", "
+ "row=" + row + ", "
+ "height=" + height + ", "
+ "width=" + width
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ViewWidgetPosition) {
ViewWidgetPosition that = (ViewWidgetPosition) o;
return this.col == that.col()
&& this.row == that.row()
&& this.height == that.height()
&& this.width == that.width();
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= col;
h$ *= 1000003;
h$ ^= row;
h$ *= 1000003;
h$ ^= height;
h$ *= 1000003;
h$ ^= width;
return h$;
}
static class Builder extends ViewWidgetPosition.Builder {
private Integer col;
private Integer row;
private Integer height;
private Integer width;
Builder() {
}
@Override
public ViewWidgetPosition.Builder col(int col) {
this.col = col;
return this;
}
@Override
public ViewWidgetPosition.Builder row(int row) {
this.row = row;
return this;
}
@Override
public ViewWidgetPosition.Builder height(int height) {
this.height = height;
return this;
}
@Override
public ViewWidgetPosition.Builder width(int width) {
this.width = width;
return this;
}
@Override
public ViewWidgetPosition build() {
String missing = "";
if (this.col == null) {
missing += " col";
}
if (this.row == null) {
missing += " row";
}
if (this.height == null) {
missing += " height";
}
if (this.width == null) {
missing += " width";
}
if (!missing.isEmpty()) {
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ViewWidgetPosition(
this.col,
this.row,
this.height,
this.width);
}
}
}