Package com.google.cloud.location
Class Location.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
- com.google.cloud.location.Location.Builder
-
- All Implemented Interfaces:
LocationOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,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, 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(String key)Cross-service attributes for the location.LocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Cross-service attributes for the location.Map<String,String>getLabelsMap()Cross-service attributes for the location.StringgetLabelsOrDefault(String key, String defaultValue)Cross-service attributes for the location.StringgetLabelsOrThrow(String key)Cross-service attributes for the location.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.Map<String,String>getMutableLabels()Deprecated.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.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(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(Map<String,String> values)Cross-service attributes for the location.Location.BuilderputLabels(String key, String value)Cross-service attributes for the location.Location.BuilderremoveLabels(String key)Cross-service attributes for the location.Location.BuildersetDisplayName(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, Object value)Location.BuildersetLocationId(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(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, Object value)Location.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
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.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- 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, 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, 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, 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.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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:
IOException
-
getName
public 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(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 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(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 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(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(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 Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceLocationOrBuilder
-
getLabelsMap
public Map<String,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 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;- Specified by:
getLabelsOrDefaultin interfaceLocationOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(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(String key)
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}map<string, string> labels = 2;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
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;
-
putAllLabels
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;
-
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>
-
-