All Downloads are FREE. Search and download functionalities are using the official Maven repository.

annotations.com.cognite.client.servicesV1.AutoValue_ConnectorServiceV1_SingleRequestItemReader Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
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_SingleRequestItemReader extends ConnectorServiceV1.SingleRequestItemReader {

  private final RequestProvider requestProvider;

  private final CogniteClient client;

  private final RequestExecutor requestExecutor;

  private final ResponseParser responseParser;

  private AutoValue_ConnectorServiceV1_SingleRequestItemReader(
      RequestProvider requestProvider,
      CogniteClient client,
      RequestExecutor requestExecutor,
      ResponseParser responseParser) {
    this.requestProvider = requestProvider;
    this.client = client;
    this.requestExecutor = requestExecutor;
    this.responseParser = responseParser;
  }

  @Override
  RequestProvider getRequestProvider() {
    return requestProvider;
  }

  @Override
  CogniteClient getClient() {
    return client;
  }

  @Override
  RequestExecutor getRequestExecutor() {
    return requestExecutor;
  }

  @Override
  ResponseParser getResponseParser() {
    return responseParser;
  }

  @Override
  public String toString() {
    return "SingleRequestItemReader{"
        + "requestProvider=" + requestProvider + ", "
        + "client=" + client + ", "
        + "requestExecutor=" + requestExecutor + ", "
        + "responseParser=" + responseParser
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ConnectorServiceV1.SingleRequestItemReader) {
      ConnectorServiceV1.SingleRequestItemReader that = (ConnectorServiceV1.SingleRequestItemReader) o;
      return this.requestProvider.equals(that.getRequestProvider())
          && this.client.equals(that.getClient())
          && this.requestExecutor.equals(that.getRequestExecutor())
          && this.responseParser.equals(that.getResponseParser());
    }
    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$ ^= responseParser.hashCode();
    return h$;
  }

  static final class Builder extends ConnectorServiceV1.SingleRequestItemReader.Builder {
    private RequestProvider requestProvider;
    private CogniteClient client;
    private RequestExecutor requestExecutor;
    private ResponseParser responseParser;
    Builder() {
    }
    @Override
    ConnectorServiceV1.SingleRequestItemReader.Builder setRequestProvider(RequestProvider requestProvider) {
      if (requestProvider == null) {
        throw new NullPointerException("Null requestProvider");
      }
      this.requestProvider = requestProvider;
      return this;
    }
    @Override
    ConnectorServiceV1.SingleRequestItemReader.Builder setClient(CogniteClient client) {
      if (client == null) {
        throw new NullPointerException("Null client");
      }
      this.client = client;
      return this;
    }
    @Override
    ConnectorServiceV1.SingleRequestItemReader.Builder setRequestExecutor(RequestExecutor requestExecutor) {
      if (requestExecutor == null) {
        throw new NullPointerException("Null requestExecutor");
      }
      this.requestExecutor = requestExecutor;
      return this;
    }
    @Override
    ConnectorServiceV1.SingleRequestItemReader.Builder setResponseParser(ResponseParser responseParser) {
      if (responseParser == null) {
        throw new NullPointerException("Null responseParser");
      }
      this.responseParser = responseParser;
      return this;
    }
    @Override
    ConnectorServiceV1.SingleRequestItemReader build() {
      if (this.requestProvider == null
          || this.client == null
          || this.requestExecutor == null
          || this.responseParser == 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.responseParser == null) {
          missing.append(" responseParser");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_ConnectorServiceV1_SingleRequestItemReader(
          this.requestProvider,
          this.client,
          this.requestExecutor,
          this.responseParser);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy