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

com.cognite.client.AutoValue_Contextualization Maven / Gradle / Ivy

There is a newer version: 2.3.3
Show newest version
package com.cognite.client;

import javax.annotation.processing.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_Contextualization extends Contextualization {

  private final CogniteClient client;

  private AutoValue_Contextualization(
      CogniteClient client) {
    this.client = client;
  }

  @Override
  public CogniteClient getClient() {
    return client;
  }

  @Override
  public String toString() {
    return "Contextualization{"
        + "client=" + client
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Contextualization) {
      Contextualization that = (Contextualization) o;
      return this.client.equals(that.getClient());
    }
    return false;
  }

  @Override
  public int hashCode() {
    int h$ = 1;
    h$ *= 1000003;
    h$ ^= client.hashCode();
    return h$;
  }

  static final class Builder extends Contextualization.Builder {
    private CogniteClient client;
    Builder() {
    }
    @Override
    Contextualization.Builder setClient(CogniteClient client) {
      if (client == null) {
        throw new NullPointerException("Null client");
      }
      this.client = client;
      return this;
    }
    @Override
    Contextualization build() {
      if (this.client == null) {
        String missing = " client";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_Contextualization(
          this.client);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy