com.cognite.client.servicesV1.AutoValue_ConnectorServiceV1_ItemWriter 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.CogniteClient;
import com.cognite.client.servicesV1.executor.RequestExecutor;
import com.cognite.client.servicesV1.request.RequestProvider;
import com.cognite.client.servicesV1.response.ResponseParser;
import javax.annotation.processing.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ConnectorServiceV1_ItemWriter extends ConnectorServiceV1.ItemWriter {
private final RequestProvider requestProvider;
private final CogniteClient client;
private final RequestExecutor requestExecutor;
private final ResponseParser duplicatesResponseParser;
private AutoValue_ConnectorServiceV1_ItemWriter(
RequestProvider requestProvider,
CogniteClient client,
RequestExecutor requestExecutor,
ResponseParser duplicatesResponseParser) {
this.requestProvider = requestProvider;
this.client = client;
this.requestExecutor = requestExecutor;
this.duplicatesResponseParser = duplicatesResponseParser;
}
@Override
RequestProvider getRequestProvider() {
return requestProvider;
}
@Override
CogniteClient getClient() {
return client;
}
@Override
RequestExecutor getRequestExecutor() {
return requestExecutor;
}
@Override
public ResponseParser getDuplicatesResponseParser() {
return duplicatesResponseParser;
}
@Override
public String toString() {
return "ItemWriter{"
+ "requestProvider=" + requestProvider + ", "
+ "client=" + client + ", "
+ "requestExecutor=" + requestExecutor + ", "
+ "duplicatesResponseParser=" + duplicatesResponseParser
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ConnectorServiceV1.ItemWriter) {
ConnectorServiceV1.ItemWriter that = (ConnectorServiceV1.ItemWriter) o;
return this.requestProvider.equals(that.getRequestProvider())
&& this.client.equals(that.getClient())
&& this.requestExecutor.equals(that.getRequestExecutor())
&& this.duplicatesResponseParser.equals(that.getDuplicatesResponseParser());
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= requestProvider.hashCode();
h$ *= 1000003;
h$ ^= client.hashCode();
h$ *= 1000003;
h$ ^= requestExecutor.hashCode();
h$ *= 1000003;
h$ ^= duplicatesResponseParser.hashCode();
return h$;
}
@Override
ConnectorServiceV1.ItemWriter.Builder toBuilder() {
return new Builder(this);
}
static final class Builder extends ConnectorServiceV1.ItemWriter.Builder {
private RequestProvider requestProvider;
private CogniteClient client;
private RequestExecutor requestExecutor;
private ResponseParser duplicatesResponseParser;
Builder() {
}
private Builder(ConnectorServiceV1.ItemWriter source) {
this.requestProvider = source.getRequestProvider();
this.client = source.getClient();
this.requestExecutor = source.getRequestExecutor();
this.duplicatesResponseParser = source.getDuplicatesResponseParser();
}
@Override
ConnectorServiceV1.ItemWriter.Builder setRequestProvider(RequestProvider requestProvider) {
if (requestProvider == null) {
throw new NullPointerException("Null requestProvider");
}
this.requestProvider = requestProvider;
return this;
}
@Override
ConnectorServiceV1.ItemWriter.Builder setClient(CogniteClient client) {
if (client == null) {
throw new NullPointerException("Null client");
}
this.client = client;
return this;
}
@Override
ConnectorServiceV1.ItemWriter.Builder setRequestExecutor(RequestExecutor requestExecutor) {
if (requestExecutor == null) {
throw new NullPointerException("Null requestExecutor");
}
this.requestExecutor = requestExecutor;
return this;
}
@Override
ConnectorServiceV1.ItemWriter.Builder setDuplicatesResponseParser(ResponseParser duplicatesResponseParser) {
if (duplicatesResponseParser == null) {
throw new NullPointerException("Null duplicatesResponseParser");
}
this.duplicatesResponseParser = duplicatesResponseParser;
return this;
}
@Override
ConnectorServiceV1.ItemWriter build() {
if (this.requestProvider == null
|| this.client == null
|| this.requestExecutor == null
|| this.duplicatesResponseParser == null) {
StringBuilder missing = new StringBuilder();
if (this.requestProvider == null) {
missing.append(" requestProvider");
}
if (this.client == null) {
missing.append(" client");
}
if (this.requestExecutor == null) {
missing.append(" requestExecutor");
}
if (this.duplicatesResponseParser == null) {
missing.append(" duplicatesResponseParser");
}
throw new IllegalStateException("Missing required properties:" + missing);
}
return new AutoValue_ConnectorServiceV1_ItemWriter(
this.requestProvider,
this.client,
this.requestExecutor,
this.duplicatesResponseParser);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy