com.cognite.client.servicesV1.AutoValue_ResponseItems 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.servicesV1;
import com.cognite.client.servicesV1.response.ResponseParser;
import com.google.common.collect.ImmutableList;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ResponseItems extends ResponseItems {
private final ResponseParser responseParser;
private final ResponseParser duplicateResponseParser;
private final ResponseParser missingResponseParser;
private final ResponseParser errorMessageResponseParser;
private final ResponseParser statusResponseParser;
private final ImmutableList resultsItemsList;
private final ResponseBinary responseBinary;
private AutoValue_ResponseItems(
ResponseParser responseParser,
ResponseParser duplicateResponseParser,
ResponseParser missingResponseParser,
ResponseParser errorMessageResponseParser,
ResponseParser statusResponseParser,
@Nullable ImmutableList resultsItemsList,
ResponseBinary responseBinary) {
this.responseParser = responseParser;
this.duplicateResponseParser = duplicateResponseParser;
this.missingResponseParser = missingResponseParser;
this.errorMessageResponseParser = errorMessageResponseParser;
this.statusResponseParser = statusResponseParser;
this.resultsItemsList = resultsItemsList;
this.responseBinary = responseBinary;
}
@Override
ResponseParser getResponseParser() {
return responseParser;
}
@Override
ResponseParser getDuplicateResponseParser() {
return duplicateResponseParser;
}
@Override
ResponseParser getMissingResponseParser() {
return missingResponseParser;
}
@Override
ResponseParser getErrorMessageResponseParser() {
return errorMessageResponseParser;
}
@Override
ResponseParser getStatusResponseParser() {
return statusResponseParser;
}
@Nullable
@Override
ImmutableList getResultsItemsList() {
return resultsItemsList;
}
@Override
public ResponseBinary getResponseBinary() {
return responseBinary;
}
@Override
public String toString() {
return "ResponseItems{"
+ "responseParser=" + responseParser + ", "
+ "duplicateResponseParser=" + duplicateResponseParser + ", "
+ "missingResponseParser=" + missingResponseParser + ", "
+ "errorMessageResponseParser=" + errorMessageResponseParser + ", "
+ "statusResponseParser=" + statusResponseParser + ", "
+ "resultsItemsList=" + resultsItemsList + ", "
+ "responseBinary=" + responseBinary
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ResponseItems) {
ResponseItems> that = (ResponseItems>) o;
return this.responseParser.equals(that.getResponseParser())
&& this.duplicateResponseParser.equals(that.getDuplicateResponseParser())
&& this.missingResponseParser.equals(that.getMissingResponseParser())
&& this.errorMessageResponseParser.equals(that.getErrorMessageResponseParser())
&& this.statusResponseParser.equals(that.getStatusResponseParser())
&& (this.resultsItemsList == null ? that.getResultsItemsList() == null : this.resultsItemsList.equals(that.getResultsItemsList()))
&& this.responseBinary.equals(that.getResponseBinary());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= responseParser.hashCode();
h$ *= 1000003;
h$ ^= duplicateResponseParser.hashCode();
h$ *= 1000003;
h$ ^= missingResponseParser.hashCode();
h$ *= 1000003;
h$ ^= errorMessageResponseParser.hashCode();
h$ *= 1000003;
h$ ^= statusResponseParser.hashCode();
h$ *= 1000003;
h$ ^= (resultsItemsList == null) ? 0 : resultsItemsList.hashCode();
h$ *= 1000003;
h$ ^= responseBinary.hashCode();
return h$;
}
@Override
ResponseItems.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends ResponseItems.Builder {
private ResponseParser responseParser;
private ResponseParser duplicateResponseParser;
private ResponseParser missingResponseParser;
private ResponseParser errorMessageResponseParser;
private ResponseParser statusResponseParser;
private ImmutableList resultsItemsList;
private ResponseBinary responseBinary;
Builder() {
}
private Builder(ResponseItems source) {
this.responseParser = source.getResponseParser();
this.duplicateResponseParser = source.getDuplicateResponseParser();
this.missingResponseParser = source.getMissingResponseParser();
this.errorMessageResponseParser = source.getErrorMessageResponseParser();
this.statusResponseParser = source.getStatusResponseParser();
this.resultsItemsList = source.getResultsItemsList();
this.responseBinary = source.getResponseBinary();
}
@Override
ResponseItems.Builder setResponseParser(ResponseParser responseParser) {
if (responseParser == null) {
throw new NullPointerException("Null responseParser");
}
this.responseParser = responseParser;
return this;
}
@Override
ResponseItems.Builder setDuplicateResponseParser(ResponseParser duplicateResponseParser) {
if (duplicateResponseParser == null) {
throw new NullPointerException("Null duplicateResponseParser");
}
this.duplicateResponseParser = duplicateResponseParser;
return this;
}
@Override
ResponseItems.Builder setMissingResponseParser(ResponseParser missingResponseParser) {
if (missingResponseParser == null) {
throw new NullPointerException("Null missingResponseParser");
}
this.missingResponseParser = missingResponseParser;
return this;
}
@Override
ResponseItems.Builder setErrorMessageResponseParser(ResponseParser errorMessageResponseParser) {
if (errorMessageResponseParser == null) {
throw new NullPointerException("Null errorMessageResponseParser");
}
this.errorMessageResponseParser = errorMessageResponseParser;
return this;
}
@Override
ResponseItems.Builder setStatusResponseParser(ResponseParser statusResponseParser) {
if (statusResponseParser == null) {
throw new NullPointerException("Null statusResponseParser");
}
this.statusResponseParser = statusResponseParser;
return this;
}
@Override
ResponseItems.Builder setResultsItemsList(ImmutableList resultsItemsList) {
this.resultsItemsList = resultsItemsList;
return this;
}
@Override
ResponseItems.Builder setResponseBinary(ResponseBinary responseBinary) {
if (responseBinary == null) {
throw new NullPointerException("Null responseBinary");
}
this.responseBinary = responseBinary;
return this;
}
@Override
ResponseItems build() {
if (this.responseParser == null
|| this.duplicateResponseParser == null
|| this.missingResponseParser == null
|| this.errorMessageResponseParser == null
|| this.statusResponseParser == null
|| this.responseBinary == null) {
StringBuilder missing = new StringBuilder();
if (this.responseParser == null) {
missing.append(" responseParser");
}
if (this.duplicateResponseParser == null) {
missing.append(" duplicateResponseParser");
}
if (this.missingResponseParser == null) {
missing.append(" missingResponseParser");
}
if (this.errorMessageResponseParser == null) {
missing.append(" errorMessageResponseParser");
}
if (this.statusResponseParser == null) {
missing.append(" statusResponseParser");
}
if (this.responseBinary == null) {
missing.append(" responseBinary");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ResponseItems(
this.responseParser,
this.duplicateResponseParser,
this.missingResponseParser,
this.errorMessageResponseParser,
this.statusResponseParser,
this.resultsItemsList,
this.responseBinary);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy