public static final class Location.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder> implements LocationOrBuilder
A resource that represents Google Cloud Platform location.Protobuf type
google.cloud.location.Location| Modifier and Type | Method and Description |
|---|---|
Location.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Location |
build() |
Location |
buildPartial() |
Location.Builder |
clear() |
Location.Builder |
clearDisplayName()
The friendly name for this location, typically a nearby city name.
|
Location.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Location.Builder |
clearLabels() |
Location.Builder |
clearLocationId()
The canonical id for this location.
|
Location.Builder |
clearMetadata()
Service-specific metadata.
|
Location.Builder |
clearName()
Resource name for the location, which may vary between implementations.
|
Location.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Location.Builder |
clone() |
boolean |
containsLabels(String key)
Cross-service attributes for the location.
|
Location |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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.Any.Builder |
getMetadataBuilder()
Service-specific metadata.
|
com.google.protobuf.AnyOrBuilder |
getMetadataOrBuilder()
Service-specific metadata.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
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.
|
boolean |
hasMetadata()
Service-specific metadata.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Location.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Location.Builder |
mergeFrom(Location other) |
Location.Builder |
mergeFrom(com.google.protobuf.Message other) |
Location.Builder |
mergeMetadata(com.google.protobuf.Any value)
Service-specific metadata.
|
Location.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Location.Builder |
putAllLabels(Map<String,String> values)
Cross-service attributes for the location.
|
Location.Builder |
putLabels(String key,
String value)
Cross-service attributes for the location.
|
Location.Builder |
removeLabels(String key)
Cross-service attributes for the location.
|
Location.Builder |
setDisplayName(String value)
The friendly name for this location, typically a nearby city name.
|
Location.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
The friendly name for this location, typically a nearby city name.
|
Location.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Location.Builder |
setLocationId(String value)
The canonical id for this location.
|
Location.Builder |
setLocationIdBytes(com.google.protobuf.ByteString value)
The canonical id for this location.
|
Location.Builder |
setMetadata(com.google.protobuf.Any.Builder builderForValue)
Service-specific metadata.
|
Location.Builder |
setMetadata(com.google.protobuf.Any value)
Service-specific metadata.
|
Location.Builder |
setName(String value)
Resource name for the location, which may vary between implementations.
|
Location.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Resource name for the location, which may vary between implementations.
|
Location.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Location.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Location build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Location buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Location.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Location.Builder>public Location.Builder mergeFrom(Location other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Location.Builder>IOExceptionpublic 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 Location.Builder setName(String value)
Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;value - The name to set.public Location.Builder clearName()
Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;public Location.Builder setNameBytes(com.google.protobuf.ByteString value)
Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;value - The bytes for name to set.public 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 Location.Builder setLocationId(String value)
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;value - The locationId to set.public Location.Builder clearLocationId()
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;public Location.Builder setLocationIdBytes(com.google.protobuf.ByteString value)
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;value - The bytes for locationId to set.public 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 Location.Builder setDisplayName(String value)
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;value - The displayName to set.public Location.Builder clearDisplayName()
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;public Location.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;value - The bytes for displayName to set.public 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 Location.Builder clearLabels()
public Location.Builder removeLabels(String key)
Cross-service attributes for the location. For example
{"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;@Deprecated public Map<String,String> getMutableLabels()
public Location.Builder putLabels(String key, String value)
Cross-service attributes for the location. For example
{"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;public Location.Builder putAllLabels(Map<String,String> values)
Cross-service attributes for the location. For example
{"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;public 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 Location.Builder setMetadata(com.google.protobuf.Any value)
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;public Location.Builder setMetadata(com.google.protobuf.Any.Builder builderForValue)
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;public Location.Builder mergeMetadata(com.google.protobuf.Any value)
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;public Location.Builder clearMetadata()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;public com.google.protobuf.Any.Builder getMetadataBuilder()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;public 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 Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>Copyright © 2022 Google LLC. All rights reserved.