com.google.appengine.api.datastore.AutoValue_CloudDatastoreRemoteServiceConfig_AppId Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appengine-api-1.0-sdk
Show all versions of appengine-api-1.0-sdk
API for Google App Engine standard environment with some of the dependencies shaded (repackaged)
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$;
}
}