Class InstanceId


  • public final class InstanceId
    extends Object
    Represents the resource name of a Cloud Spanner Instance.
    • Method Detail

      • getInstance

        public String getInstance()
        Returns the instance ID.
      • getProject

        public String getProject()
        Returns the ID of the project that owns this instance.
      • getName

        public String getName()
        Returns the name of the instance.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • of

        public static InstanceId of​(String project,
                                    String instance)
        Creates an InstanceId given project and instance IDs.