Package com.google.cloud.location
Interface LocationOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Location,Location.Builder
public interface LocationOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Cross-service attributes for the location.The friendly name for this location, typically a nearby city name.com.google.protobuf.ByteStringThe friendly name for this location, typically a nearby city name.Deprecated.intCross-service attributes for the location.Cross-service attributes for the location.getLabelsOrDefault(String key, String defaultValue) Cross-service attributes for the location.getLabelsOrThrow(String key) Cross-service attributes for the location.The canonical id for this location.com.google.protobuf.ByteStringThe canonical id for this location.com.google.protobuf.AnyService-specific metadata.com.google.protobuf.AnyOrBuilderService-specific metadata.getName()Resource name for the location, which may vary between implementations.com.google.protobuf.ByteStringResource name for the location, which may vary between implementations.booleanService-specific metadata.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getName
String getName()Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;- Returns:
- The bytes for name.
-
getLocationId
String getLocationId()The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;- Returns:
- The locationId.
-
getLocationIdBytes
com.google.protobuf.ByteString getLocationIdBytes()The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;- Returns:
- The bytes for locationId.
-
getDisplayName
String getDisplayName()The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;- Returns:
- The displayName.
-
getDisplayNameBytes
com.google.protobuf.ByteString getDisplayNameBytes()The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;- Returns:
- The bytes for displayName.
-
getLabelsCount
int getLabelsCount()Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2; -
containsLabels
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2; -
getLabels
Deprecated.UsegetLabelsMap()instead. -
getLabelsMap
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2; -
getLabelsOrDefault
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2; -
getLabelsOrThrow
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2; -
hasMetadata
boolean hasMetadata()Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;- Returns:
- Whether the metadata field is set.
-
getMetadata
com.google.protobuf.Any getMetadata()Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;- Returns:
- The metadata.
-
getMetadataOrBuilder
com.google.protobuf.AnyOrBuilder getMetadataOrBuilder()Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;
-