com.cognite.client.AutoValue_RawRows_RawRowParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cdf-sdk-java Show documentation
Show all versions of cdf-sdk-java Show documentation
Java SDK for reading and writing from/to CDF resources.
package com.cognite.client;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_RawRows_RawRowParser extends RawRows.RawRowParser {
private final String dbName;
private final String tableName;
private AutoValue_RawRows_RawRowParser(
String dbName,
String tableName) {
this.dbName = dbName;
this.tableName = tableName;
}
@Override
String getDbName() {
return dbName;
}
@Override
String getTableName() {
return tableName;
}
@Override
public String toString() {
return "RawRowParser{"
+ "dbName=" + dbName + ", "
+ "tableName=" + tableName
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof RawRows.RawRowParser) {
RawRows.RawRowParser that = (RawRows.RawRowParser) o;
return this.dbName.equals(that.getDbName())
&& this.tableName.equals(that.getTableName());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= dbName.hashCode();
h$ *= 1000003;
h$ ^= tableName.hashCode();
return h$;
}
static final class Builder extends RawRows.RawRowParser.Builder {
private String dbName;
private String tableName;
Builder() {
}
@Override
RawRows.RawRowParser.Builder setDbName(String dbName) {
if (dbName == null) {
throw new NullPointerException("Null dbName");
}
this.dbName = dbName;
return this;
}
@Override
RawRows.RawRowParser.Builder setTableName(String tableName) {
if (tableName == null) {
throw new NullPointerException("Null tableName");
}
this.tableName = tableName;
return this;
}
@Override
RawRows.RawRowParser build() {
if (this.dbName == null
|| this.tableName == null) {
StringBuilder missing = new StringBuilder();
if (this.dbName == null) {
missing.append(" dbName");
}
if (this.tableName == null) {
missing.append(" tableName");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_RawRows_RawRowParser(
this.dbName,
this.tableName);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy