Class InstanceId (6.74.1)

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
Name Description
project String
instance String
Returns
Type Description
InstanceId

Methods

equals(Object o)

public boolean equals(Object o)
Parameter
Name Description
o Object
Returns
Type Description
boolean
Overrides

getInstance()

public String getInstance()

Returns the instance ID.

Returns
Type Description
String

getName()

public String getName()

Returns the name of the instance.

Returns
Type Description
String

getProject()

public String getProject()

Returns the ID of the project that owns this instance.

Returns
Type Description
String

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

toString()

public String toString()
Returns
Type Description
String
Overrides