Class InstanceId (6.56.0)

public final class InstanceId

Represents the resource name of a Cloud Spanner Instance.

Inheritance

Object > InstanceId

Static Methods

of(String project, String instance)

public static InstanceId of(String project, String instance)

Creates an InstanceId given project and instance IDs.

Parameters
NameDescription
projectString
instanceString
Returns
TypeDescription
InstanceId

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
NameDescription
oObject
Returns
TypeDescription
boolean
Overrides

getInstance()

public String getInstance()

Returns the instance ID.

Returns
TypeDescription
String

getName()

public String getName()

Returns the name of the instance.

Returns
TypeDescription
String

getProject()

public String getProject()

Returns the ID of the project that owns this instance.

Returns
TypeDescription
String

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

toString()

public String toString()
Returns
TypeDescription
String
Overrides