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

com.google.appengine.api.datastore.AutoValue_CloudDatastoreRemoteServiceConfig_AppId Maven / Gradle / Ivy

Go to download

API for Google App Engine standard environment with some of the dependencies shaded (repackaged)

There is a newer version: 2.0.27
Show newest version
package com.google.appengine.api.datastore;

import javax.annotation.Generated;

@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_CloudDatastoreRemoteServiceConfig_AppId extends CloudDatastoreRemoteServiceConfig.AppId {

  private final CloudDatastoreRemoteServiceConfig.AppId.Location location;

  private final String projectId;

  AutoValue_CloudDatastoreRemoteServiceConfig_AppId(
      CloudDatastoreRemoteServiceConfig.AppId.Location location,
      String projectId) {
    if (location == null) {
      throw new NullPointerException("Null location");
    }
    this.location = location;
    if (projectId == null) {
      throw new NullPointerException("Null projectId");
    }
    this.projectId = projectId;
  }

  @Override
  CloudDatastoreRemoteServiceConfig.AppId.Location location() {
    return location;
  }

  @Override
  String projectId() {
    return projectId;
  }

  @Override
  public String toString() {
    return "AppId{"
        + "location=" + location + ", "
        + "projectId=" + projectId
        + "}";
  }

  @Override
  public boolean equals(Object o) {
    if (o == this) {
      return true;
    }
    if (o instanceof CloudDatastoreRemoteServiceConfig.AppId) {
      CloudDatastoreRemoteServiceConfig.AppId that = (CloudDatastoreRemoteServiceConfig.AppId) o;
      return this.location.equals(that.location())
          && this.projectId.equals(that.projectId());
    }
    return false;
  }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy