Package com.google.cloud.location
Class Location.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
- com.google.cloud.location.Location.Builder
-
- All Implemented Interfaces:
LocationOrBuilder,com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.lang.Cloneable
- Enclosing class:
- Location
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 typegoogle.cloud.location.Location
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Location.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Locationbuild()LocationbuildPartial()Location.Builderclear()Location.BuilderclearDisplayName()The friendly name for this location, typically a nearby city name.Location.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Location.BuilderclearLabels()Location.BuilderclearLocationId()The canonical id for this location.Location.BuilderclearMetadata()Service-specific metadata.Location.BuilderclearName()Resource name for the location, which may vary between implementations.Location.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Location.Builderclone()booleancontainsLabels(java.lang.String key)Cross-service attributes for the location.LocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetDisplayName()The friendly name for this location, typically a nearby city name.com.google.protobuf.ByteStringgetDisplayNameBytes()The friendly name for this location, typically a nearby city name.java.util.Map<java.lang.String,java.lang.String>getLabels()Deprecated.intgetLabelsCount()Cross-service attributes for the location.java.util.Map<java.lang.String,java.lang.String>getLabelsMap()Cross-service attributes for the location.java.lang.StringgetLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)Cross-service attributes for the location.java.lang.StringgetLabelsOrThrow(java.lang.String key)Cross-service attributes for the location.java.lang.StringgetLocationId()The canonical id for this location.com.google.protobuf.ByteStringgetLocationIdBytes()The canonical id for this location.com.google.protobuf.AnygetMetadata()Service-specific metadata.com.google.protobuf.Any.BuildergetMetadataBuilder()Service-specific metadata.com.google.protobuf.AnyOrBuildergetMetadataOrBuilder()Service-specific metadata.java.util.Map<java.lang.String,java.lang.String>getMutableLabels()Deprecated.java.lang.StringgetName()Resource name for the location, which may vary between implementations.com.google.protobuf.ByteStringgetNameBytes()Resource name for the location, which may vary between implementations.booleanhasMetadata()Service-specific metadata.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Location.BuildermergeFrom(Location other)Location.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Location.BuildermergeFrom(com.google.protobuf.Message other)Location.BuildermergeMetadata(com.google.protobuf.Any value)Service-specific metadata.Location.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Location.BuilderputAllLabels(java.util.Map<java.lang.String,java.lang.String> values)Cross-service attributes for the location.Location.BuilderputLabels(java.lang.String key, java.lang.String value)Cross-service attributes for the location.Location.BuilderremoveLabels(java.lang.String key)Cross-service attributes for the location.Location.BuildersetDisplayName(java.lang.String value)The friendly name for this location, typically a nearby city name.Location.BuildersetDisplayNameBytes(com.google.protobuf.ByteString value)The friendly name for this location, typically a nearby city name.Location.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Location.BuildersetLocationId(java.lang.String value)The canonical id for this location.Location.BuildersetLocationIdBytes(com.google.protobuf.ByteString value)The canonical id for this location.Location.BuildersetMetadata(com.google.protobuf.Any value)Service-specific metadata.Location.BuildersetMetadata(com.google.protobuf.Any.Builder builderForValue)Service-specific metadata.Location.BuildersetName(java.lang.String value)Resource name for the location, which may vary between implementations.Location.BuildersetNameBytes(com.google.protobuf.ByteString value)Resource name for the location, which may vary between implementations.Location.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Location.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessage.ExtendableBuilder
addExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasField, mergeExtensionFields, newBuilderForField, parseUnknownField, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
getOneofFieldDescriptor, getUnknownFields, getUnknownFieldSetBuilder, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, onBuilt, onChanged, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Location.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Location.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Overrides:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
public Location.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setField
public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearField
public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
addRepeatedField
public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>- Throws:
java.io.IOException
-
getName
public java.lang.String getName()
Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;- Specified by:
getNamein interfaceLocationOrBuilder- Returns:
- The name.
-
getNameBytes
public 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;- Specified by:
getNameBytesin interfaceLocationOrBuilder- Returns:
- The bytes for name.
-
setName
public Location.Builder setName(java.lang.String value)
Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
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;- Returns:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getLocationId
public java.lang.String getLocationId()
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;- Specified by:
getLocationIdin interfaceLocationOrBuilder- Returns:
- The locationId.
-
getLocationIdBytes
public com.google.protobuf.ByteString getLocationIdBytes()
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;- Specified by:
getLocationIdBytesin interfaceLocationOrBuilder- Returns:
- The bytes for locationId.
-
setLocationId
public Location.Builder setLocationId(java.lang.String value)
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;- Parameters:
value- The locationId to set.- Returns:
- This builder for chaining.
-
clearLocationId
public Location.Builder clearLocationId()
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;- Returns:
- This builder for chaining.
-
setLocationIdBytes
public Location.Builder setLocationIdBytes(com.google.protobuf.ByteString value)
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;- Parameters:
value- The bytes for locationId to set.- Returns:
- This builder for chaining.
-
getDisplayName
public java.lang.String getDisplayName()
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;- Specified by:
getDisplayNamein interfaceLocationOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;- Specified by:
getDisplayNameBytesin interfaceLocationOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
public Location.Builder setDisplayName(java.lang.String value)
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
public Location.Builder clearDisplayName()
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:LocationOrBuilderCross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;- Specified by:
getLabelsCountin interfaceLocationOrBuilder
-
containsLabels
public boolean containsLabels(java.lang.String key)
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;- Specified by:
containsLabelsin interfaceLocationOrBuilder
-
getLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceLocationOrBuilder
-
getLabelsMap
public java.util.Map<java.lang.String,java.lang.String> getLabelsMap()
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;- Specified by:
getLabelsMapin interfaceLocationOrBuilder
-
getLabelsOrDefault
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue)Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;- Specified by:
getLabelsOrDefaultin interfaceLocationOrBuilder
-
getLabelsOrThrow
public java.lang.String getLabelsOrThrow(java.lang.String key)
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;- Specified by:
getLabelsOrThrowin interfaceLocationOrBuilder
-
clearLabels
public Location.Builder clearLabels()
-
removeLabels
public Location.Builder removeLabels(java.lang.String key)
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;
-
getMutableLabels
@Deprecated public java.util.Map<java.lang.String,java.lang.String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public Location.Builder putLabels(java.lang.String key, java.lang.String value)
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;
-
putAllLabels
public Location.Builder putAllLabels(java.util.Map<java.lang.String,java.lang.String> values)
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;
-
hasMetadata
public boolean hasMetadata()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;- Specified by:
hasMetadatain interfaceLocationOrBuilder- Returns:
- Whether the metadata field is set.
-
getMetadata
public com.google.protobuf.Any getMetadata()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;- Specified by:
getMetadatain interfaceLocationOrBuilder- Returns:
- The metadata.
-
setMetadata
public 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;
-
setMetadata
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;
-
mergeMetadata
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;
-
clearMetadata
public Location.Builder clearMetadata()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;
-
getMetadataBuilder
public com.google.protobuf.Any.Builder getMetadataBuilder()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;
-
getMetadataOrBuilder
public com.google.protobuf.AnyOrBuilder getMetadataOrBuilder()
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;- Specified by:
getMetadataOrBuilderin interfaceLocationOrBuilder
-
setUnknownFields
public final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-