public final class Location extends com.google.protobuf.GeneratedMessageV3 implements LocationOrBuilder
A resource that represents Google Cloud Platform location.Protobuf type
google.cloud.location.Location| Modifier and Type | Class and Description |
|---|---|
static class |
Location.Builder
A resource that represents Google Cloud Platform location.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
LOCATION_ID_FIELD_NUMBER |
static int |
METADATA_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsLabels(String key)
Cross-service attributes for the location.
|
boolean |
equals(Object obj) |
static Location |
getDefaultInstance() |
Location |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
The friendly name for this location, typically a nearby city name.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
The friendly name for this location, typically a nearby city name.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Cross-service attributes for the location.
|
Map<String,String> |
getLabelsMap()
Cross-service attributes for the location.
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Cross-service attributes for the location.
|
String |
getLabelsOrThrow(String key)
Cross-service attributes for the location.
|
String |
getLocationId()
The canonical id for this location.
|
com.google.protobuf.ByteString |
getLocationIdBytes()
The canonical id for this location.
|
com.google.protobuf.Any |
getMetadata()
Service-specific metadata.
|
com.google.protobuf.AnyOrBuilder |
getMetadataOrBuilder()
Service-specific metadata.
|
String |
getName()
Resource name for the location, which may vary between implementations.
|
com.google.protobuf.ByteString |
getNameBytes()
Resource name for the location, which may vary between implementations.
|
com.google.protobuf.Parser<Location> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasMetadata()
Service-specific metadata.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Location.Builder |
newBuilder() |
static Location.Builder |
newBuilder(Location prototype) |
Location.Builder |
newBuilderForType() |
protected Location.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Location |
parseDelimitedFrom(InputStream input) |
static Location |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Location |
parseFrom(byte[] data) |
static Location |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Location |
parseFrom(ByteBuffer data) |
static Location |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Location |
parseFrom(com.google.protobuf.ByteString data) |
static Location |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Location |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Location |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Location |
parseFrom(InputStream input) |
static Location |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Location> |
parser() |
Location.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int METADATA_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getName()
Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;getName in interface LocationOrBuilderpublic 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;getNameBytes in interface LocationOrBuilderpublic String getLocationId()
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;getLocationId in interface LocationOrBuilderpublic com.google.protobuf.ByteString getLocationIdBytes()
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;getLocationIdBytes in interface LocationOrBuilderpublic String getDisplayName()
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;getDisplayName in interface LocationOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;getDisplayNameBytes in interface LocationOrBuilderpublic int getLabelsCount()
LocationOrBuilder
Cross-service attributes for the location. For example
{"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;getLabelsCount in interface LocationOrBuilderpublic boolean containsLabels(String key)
Cross-service attributes for the location. For example
{"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;containsLabels in interface LocationOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface LocationOrBuilderpublic Map<String,String> getLabelsMap()
Cross-service attributes for the location. For example
{"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;getLabelsMap in interface LocationOrBuilderpublic 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;getLabelsOrDefault in interface LocationOrBuilderpublic String getLabelsOrThrow(String key)
Cross-service attributes for the location. For example
{"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;getLabelsOrThrow in interface LocationOrBuilderpublic boolean hasMetadata()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;hasMetadata in interface LocationOrBuilderpublic com.google.protobuf.Any getMetadata()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;getMetadata in interface LocationOrBuilderpublic com.google.protobuf.AnyOrBuilder getMetadataOrBuilder()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;getMetadataOrBuilder in interface LocationOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Location parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Location parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Location parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Location parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Location parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Location parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Location parseFrom(InputStream input) throws IOException
IOExceptionpublic static Location parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Location parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Location parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Location parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Location parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Location.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Location.Builder newBuilder()
public static Location.Builder newBuilder(Location prototype)
public Location.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Location.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Location getDefaultInstance()
public static com.google.protobuf.Parser<Location> parser()
public com.google.protobuf.Parser<Location> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Location getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.