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

com.cognite.client.servicesV1.AutoValue_ConnectorServiceV1_FileBinaryReader 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 java.net.URI;
import javax.annotation.Nullable;
import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ConnectorServiceV1_FileBinaryReader extends ConnectorServiceV1.FileBinaryReader {

  private final RequestProvider requestProvider;

  private final CogniteClient client;

  private final RequestExecutor requestExecutor;

  private final boolean forceTempStorage;

  private final URI tempStoragePath;

  private AutoValue_ConnectorServiceV1_FileBinaryReader(
      RequestProvider requestProvider,
      CogniteClient client,
      RequestExecutor requestExecutor,
      boolean forceTempStorage,
      @Nullable URI tempStoragePath) {
    this.requestProvider = requestProvider;
    this.client = client;
    this.requestExecutor = requestExecutor;
    this.forceTempStorage = forceTempStorage;
    this.tempStoragePath = tempStoragePath;
  }

  @Override
  RequestProvider getRequestProvider() {
    return requestProvider;
  }

  @Override
  CogniteClient getClient() {
    return client;
  }

  @Override
  RequestExecutor getRequestExecutor() {
    return requestExecutor;
  }

  @Override
  boolean isForceTempStorage() {
    return forceTempStorage;
  }

  @Nullable
  @Override
  URI getTempStoragePath() {
    return tempStoragePath;
  }

  @Override
  public String toString() {
    return "FileBinaryReader{"
        + "requestProvider=" + requestProvider + ", "
        + "client=" + client + ", "
        + "requestExecutor=" + requestExecutor + ", "
        + "forceTempStorage=" + forceTempStorage + ", "
        + "tempStoragePath=" + tempStoragePath
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof ConnectorServiceV1.FileBinaryReader) {
      ConnectorServiceV1.FileBinaryReader that = (ConnectorServiceV1.FileBinaryReader) o;
      return this.requestProvider.equals(that.getRequestProvider())
          && this.client.equals(that.getClient())
          && this.requestExecutor.equals(that.getRequestExecutor())
          && this.forceTempStorage == that.isForceTempStorage()
          && (this.tempStoragePath == null ? that.getTempStoragePath() == null : this.tempStoragePath.equals(that.getTempStoragePath()));
    }
    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$ ^= forceTempStorage ? 1231 : 1237;
    h$ *= 1000003;
    h$ ^= (tempStoragePath == null) ? 0 : tempStoragePath.hashCode();
    return h$;
  }

  @Override
  ConnectorServiceV1.FileBinaryReader.Builder toBuilder() {
    return new Builder(this);
  }

  static final class Builder extends ConnectorServiceV1.FileBinaryReader.Builder {
    private RequestProvider requestProvider;
    private CogniteClient client;
    private RequestExecutor requestExecutor;
    private Boolean forceTempStorage;
    private URI tempStoragePath;
    Builder() {
    }
    private Builder(ConnectorServiceV1.FileBinaryReader source) {
      this.requestProvider = source.getRequestProvider();
      this.client = source.getClient();
      this.requestExecutor = source.getRequestExecutor();
      this.forceTempStorage = source.isForceTempStorage();
      this.tempStoragePath = source.getTempStoragePath();
    }
    @Override
    ConnectorServiceV1.FileBinaryReader.Builder setRequestProvider(RequestProvider requestProvider) {
      if (requestProvider == null) {
        throw new NullPointerException("Null requestProvider");
      }
      this.requestProvider = requestProvider;
      return this;
    }
    @Override
    ConnectorServiceV1.FileBinaryReader.Builder setClient(CogniteClient client) {
      if (client == null) {
        throw new NullPointerException("Null client");
      }
      this.client = client;
      return this;
    }
    @Override
    ConnectorServiceV1.FileBinaryReader.Builder setRequestExecutor(RequestExecutor requestExecutor) {
      if (requestExecutor == null) {
        throw new NullPointerException("Null requestExecutor");
      }
      this.requestExecutor = requestExecutor;
      return this;
    }
    @Override
    ConnectorServiceV1.FileBinaryReader.Builder setForceTempStorage(boolean forceTempStorage) {
      this.forceTempStorage = forceTempStorage;
      return this;
    }
    @Override
    ConnectorServiceV1.FileBinaryReader.Builder setTempStoragePath(URI tempStoragePath) {
      this.tempStoragePath = tempStoragePath;
      return this;
    }
    @Override
    ConnectorServiceV1.FileBinaryReader build() {
      if (this.requestProvider == null
          || this.client == null
          || this.requestExecutor == null
          || this.forceTempStorage == 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.forceTempStorage == null) {
          missing.append(" forceTempStorage");
        }
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_ConnectorServiceV1_FileBinaryReader(
          this.requestProvider,
          this.client,
          this.requestExecutor,
          this.forceTempStorage,
          this.tempStoragePath);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy