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.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 type
google.cloud.location.Location
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
The friendly name for this location, typically a nearby city name.The canonical id for this location.Service-specific metadata.Resource name for the location, which may vary between implementations.boolean
containsLabels
(String key) Cross-service attributes for the location.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
The friendly name for this location, typically a nearby city name.com.google.protobuf.ByteString
The friendly name for this location, typically a nearby city name.Deprecated.int
Cross-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.ByteString
The canonical id for this location.com.google.protobuf.Any
Service-specific metadata.com.google.protobuf.Any.Builder
Service-specific metadata.com.google.protobuf.AnyOrBuilder
Service-specific metadata.Deprecated.getName()
Resource name for the location, which may vary between implementations.com.google.protobuf.ByteString
Resource name for the location, which may vary between implementations.boolean
Service-specific metadata.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeMetadata
(com.google.protobuf.Any value) Service-specific metadata.final Location.Builder
mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllLabels
(Map<String, String> values) Cross-service attributes for the location.Cross-service attributes for the location.removeLabels
(String key) Cross-service attributes for the location.setDisplayName
(String value) The friendly name for this location, typically a nearby city name.setDisplayNameBytes
(com.google.protobuf.ByteString value) The friendly name for this location, typically a nearby city name.setLocationId
(String value) The canonical id for this location.setLocationIdBytes
(com.google.protobuf.ByteString value) The canonical id for this location.setMetadata
(com.google.protobuf.Any value) Service-specific metadata.setMetadata
(com.google.protobuf.Any.Builder builderForValue) Service-specific metadata.Resource name for the location, which may vary between implementations.setNameBytes
(com.google.protobuf.ByteString value) Resource name for the location, which may vary between implementations.final Location.Builder
setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, 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
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
- Throws:
IOException
-
getName
Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"`
string name = 1;
- Specified by:
getName
in 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:
getNameBytes
in interfaceLocationOrBuilder
- Returns:
- The bytes for name.
-
setName
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
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
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
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;
- Specified by:
getLocationId
in 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:
getLocationIdBytes
in interfaceLocationOrBuilder
- Returns:
- The bytes for locationId.
-
setLocationId
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
The canonical id for this location. For example: `"us-east1"`.
string location_id = 4;
- Returns:
- This builder for chaining.
-
setLocationIdBytes
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
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;
- Specified by:
getDisplayName
in 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:
getDisplayNameBytes
in interfaceLocationOrBuilder
- Returns:
- The bytes for displayName.
-
setDisplayName
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
The friendly name for this location, typically a nearby city name. For example, "Tokyo".
string display_name = 5;
- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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:LocationOrBuilder
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;
- Specified by:
getLabelsCount
in interfaceLocationOrBuilder
-
containsLabels
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;
- Specified by:
containsLabels
in interfaceLocationOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceLocationOrBuilder
-
getLabelsMap
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;
- Specified by:
getLabelsMap
in interfaceLocationOrBuilder
-
getLabelsOrDefault
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;
- Specified by:
getLabelsOrDefault
in interfaceLocationOrBuilder
-
getLabelsOrThrow
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;
- Specified by:
getLabelsOrThrow
in interfaceLocationOrBuilder
-
clearLabels
-
removeLabels
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;
-
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"}
map<string, string> labels = 2;
-
putAllLabels
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:
hasMetadata
in 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:
getMetadata
in interfaceLocationOrBuilder
- Returns:
- The metadata.
-
setMetadata
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;
-
setMetadata
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;
-
mergeMetadata
Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;
-
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:
getMetadataOrBuilder
in interfaceLocationOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-