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

com.cognite.client.AutoValue_Assets 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_Assets extends Assets {

  private final CogniteClient client;

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

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

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

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof Assets) {
      Assets that = (Assets) 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 Assets.Builder {
    private CogniteClient client;
    Builder() {
    }
    @Override
    Assets.Builder setClient(CogniteClient client) {
      if (client == null) {
        throw new NullPointerException("Null client");
      }
      this.client = client;
      return this;
    }
    @Override
    Assets build() {
      if (this.client == null) {
        String missing = " client";
        throw new IllegalStateException("Missing required properties:" + missing);
      }
      return new AutoValue_Assets(
          this.client);
    }
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy