public interface LocationOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
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 | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for displayName. |
getLabels() (deprecated)
public abstract Map<String,String> getLabels()
Use #getLabelsMap() instead.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key |
String |
defaultValue |
String |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
key |
String |
Returns | |
---|---|
Type | Description |
String |
getLocationId()
public abstract String getLocationId()
The canonical id for this location. For example: "us-east1"
.
string location_id = 4;
Returns | |
---|---|
Type | Description |
String |
The locationId. |
getLocationIdBytes()
public abstract ByteString getLocationIdBytes()
The canonical id for this location. For example: "us-east1"
.
string location_id = 4;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean |
Whether the metadata field is set. |