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

ai.grakn.client.rpc.AutoValue_Transceiver_Response Maven / Gradle / Ivy

The newest version!

package ai.grakn.client.rpc;

import ai.grakn.rpc.proto.SessionProto;
import io.grpc.StatusRuntimeException;
import javax.annotation.Generated;
import javax.annotation.Nullable;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
 final class AutoValue_Transceiver_Response extends Transceiver.Response {

  private final SessionProto.Transaction.Res nullableOk;
  private final StatusRuntimeException nullableError;

  AutoValue_Transceiver_Response(
      @Nullable SessionProto.Transaction.Res nullableOk,
      @Nullable StatusRuntimeException nullableError) {
    this.nullableOk = nullableOk;
    this.nullableError = nullableError;
  }

  @Nullable
  @Override
  SessionProto.Transaction.Res nullableOk() {
    return nullableOk;
  }

  @Nullable
  @Override
  StatusRuntimeException nullableError() {
    return nullableError;
  }

  @Override
  public String toString() {
    return "Response{"
        + "nullableOk=" + nullableOk + ", "
        + "nullableError=" + nullableError
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Transceiver.Response) {
      Transceiver.Response that = (Transceiver.Response) o;
      return ((this.nullableOk == null) ? (that.nullableOk() == null) : this.nullableOk.equals(that.nullableOk()))
           && ((this.nullableError == null) ? (that.nullableError() == null) : this.nullableError.equals(that.nullableError()));
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h = 1;
    h *= 1000003;
    h ^= (nullableOk == null) ? 0 : this.nullableOk.hashCode();
    h *= 1000003;
    h ^= (nullableError == null) ? 0 : this.nullableError.hashCode();
    return h;
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy