Interface LocationOrBuilder (2.10.0)

public interface LocationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDisplayName()

public abstract String getDisplayName()

The friendly name for this location, typically a nearby city name. For example, "Tokyo".

string display_name = 5;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract ByteString getDisplayNameBytes()

The friendly name for this location, typically a nearby city name. For example, "Tokyo".

string display_name = 5;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}

map<string, string> labels = 2;

Returns
TypeDescription
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}

map<string, string> labels = 2;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}

map<string, string> labels = 2;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}

map<string, string> labels = 2;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLocationId()

public abstract String getLocationId()

The canonical id for this location. For example: "us-east1".

string location_id = 4;

Returns
TypeDescription
String

The locationId.

getLocationIdBytes()

public abstract ByteString getLocationIdBytes()

The canonical id for this location. For example: "us-east1".

string location_id = 4;

Returns
TypeDescription
ByteString

The bytes for locationId.

getMetadata()

public abstract Any getMetadata()

Service-specific metadata. For example the available capacity at the given location.

.google.protobuf.Any metadata = 3;

Returns
TypeDescription
Any

The metadata.

getMetadataOrBuilder()

public abstract AnyOrBuilder getMetadataOrBuilder()

Service-specific metadata. For example the available capacity at the given location.

.google.protobuf.Any metadata = 3;

Returns
TypeDescription
AnyOrBuilder

getName()

public abstract String getName()

Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1"

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Resource name for the location, which may vary between implementations. For example: "projects/example-project/locations/us-east1"

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

hasMetadata()

public abstract boolean hasMetadata()

Service-specific metadata. For example the available capacity at the given location.

.google.protobuf.Any metadata = 3;

Returns
TypeDescription
boolean

Whether the metadata field is set.