Package com.google.cloud.spanner
Class InstanceId
java.lang.Object
com.google.cloud.spanner.InstanceId
Represents the resource name of a Cloud Spanner Instance.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the instance ID.getName()
Returns the name of the instance.Returns the ID of the project that owns this instance.int
hashCode()
static InstanceId
Creates anInstanceId
given project and instance IDs.toString()
-
Method Details
-
getInstance
Returns the instance ID. -
getProject
Returns the ID of the project that owns this instance. -
getName
Returns the name of the instance. -
hashCode
public int hashCode() -
equals
-
toString
-
of
Creates anInstanceId
given project and instance IDs.
-