- 2.62.0 (latest)
- 2.61.3
- 2.60.0
- 2.59.2
- 2.58.0
- 2.57.0
- 2.56.0
- 2.54.1
- 2.53.0
- 2.52.0
- 2.51.0
- 2.50.1
- 2.49.0
- 2.48.0
- 2.46.0
- 2.45.1
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.1
- 2.38.0
- 2.37.1
- 2.36.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.26.0
- 2.25.1
- 2.24.0
- 2.23.1
- 2.22.1
- 2.21.1
- 2.15.0
- 2.14.3
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.6
- 2.8.4
- 2.7.4
public static final class Location.Builder extends GeneratedMessageV3.Builder<Location.Builder> implements LocationOrBuilderA resource that represents Google Cloud Platform location.
 Protobuf type google.cloud.location.Location
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Location.BuilderImplements
LocationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Location.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
build()
public Location build()| Returns | |
|---|---|
| Type | Description | 
| Location | |
buildPartial()
public Location buildPartial()| Returns | |
|---|---|
| Type | Description | 
| Location | |
clear()
public Location.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
clearDisplayName()
public Location.Builder clearDisplayName()The friendly name for this location, typically a nearby city name. For example, "Tokyo".
 string display_name = 5;
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
clearField(Descriptors.FieldDescriptor field)
public Location.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
clearLabels()
public Location.Builder clearLabels()| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
clearLocationId()
public Location.Builder clearLocationId() The canonical id for this location. For example: "us-east1".
 string location_id = 4;
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
clearMetadata()
public Location.Builder clearMetadata()Service-specific metadata. For example the available capacity at the given location.
 .google.protobuf.Any metadata = 3;
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
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 | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public Location.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
clone()
public Location.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
containsLabels(String key)
public boolean containsLabels(String key)Cross-service attributes for the location. For example
 {"cloud.googleapis.com/region": "us-east1"}
 map<string, string> labels = 2;
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| boolean | |
getDefaultInstanceForType()
public Location getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| Location | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getDisplayName()
public String getDisplayName()The friendly name for this location, typically a nearby city name. For example, "Tokyo".
 string display_name = 5;
| Returns | |
|---|---|
| Type | Description | 
| String | The displayName. | 
getDisplayNameBytes()
public ByteString getDisplayNameBytes()The friendly name for this location, typically a nearby city name. For example, "Tokyo".
 string display_name = 5;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for displayName. | 
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getLabelsCount()
public int getLabelsCount()Cross-service attributes for the location. For example
 {"cloud.googleapis.com/region": "us-east1"}
 map<string, string> labels = 2;
| Returns | |
|---|---|
| Type | Description | 
| int | |
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;
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getLabelsOrDefault(String key, String defaultValue)
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;
| Parameters | |
|---|---|
| Name | Description | 
| key | String | 
| defaultValue | String | 
| Returns | |
|---|---|
| Type | Description | 
| String | |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Cross-service attributes for the location. For example
 {"cloud.googleapis.com/region": "us-east1"}
 map<string, string> labels = 2;
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| String | |
getLocationId()
public String getLocationId() The canonical id for this location. For example: "us-east1".
 string location_id = 4;
| Returns | |
|---|---|
| Type | Description | 
| String | The locationId. | 
getLocationIdBytes()
public ByteString getLocationIdBytes() The canonical id for this location. For example: "us-east1".
 string location_id = 4;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for locationId. | 
getMetadata()
public Any getMetadata()Service-specific metadata. For example the available capacity at the given location.
 .google.protobuf.Any metadata = 3;
| Returns | |
|---|---|
| Type | Description | 
| Any | The metadata. | 
getMetadataBuilder()
public Any.Builder getMetadataBuilder()Service-specific metadata. For example the available capacity at the given location.
 .google.protobuf.Any metadata = 3;
| Returns | |
|---|---|
| Type | Description | 
| Builder | |
getMetadataOrBuilder()
public AnyOrBuilder getMetadataOrBuilder()Service-specific metadata. For example the available capacity at the given location.
 .google.protobuf.Any metadata = 3;
| Returns | |
|---|---|
| Type | Description | 
| AnyOrBuilder | |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
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;
| Returns | |
|---|---|
| Type | Description | 
| String | The name. | 
getNameBytes()
public ByteString getNameBytes() Resource name for the location, which may vary between implementations.
 For example: "projects/example-project/locations/us-east1"
 string name = 1;
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for name. | 
hasMetadata()
public boolean hasMetadata()Service-specific metadata. For example the available capacity at the given location.
 .google.protobuf.Any metadata = 3;
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the metadata field is set. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
| number | int | 
| Returns | |
|---|---|
| Type | Description | 
| com.google.protobuf.MapFieldReflectionAccessor | |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
| number | int | 
| Returns | |
|---|---|
| Type | Description | 
| com.google.protobuf.MapFieldReflectionAccessor | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeFrom(Location other)
public Location.Builder mergeFrom(Location other)| Parameter | |
|---|---|
| Name | Description | 
| other | Location | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public Location.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
mergeMetadata(Any value)
public Location.Builder mergeMetadata(Any value)Service-specific metadata. For example the available capacity at the given location.
 .google.protobuf.Any metadata = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | Any | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Location.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
putAllLabels(Map<String,String> values)
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;
| Parameter | |
|---|---|
| Name | Description | 
| values | Map<String,String> | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
putLabels(String key, String value)
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;
| Parameters | |
|---|---|
| Name | Description | 
| key | String | 
| value | String | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
removeLabels(String key)
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;
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
setDisplayName(String value)
public Location.Builder setDisplayName(String value)The friendly name for this location, typically a nearby city name. For example, "Tokyo".
 string display_name = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe displayName to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
setDisplayNameBytes(ByteString value)
public Location.Builder setDisplayNameBytes(ByteString value)The friendly name for this location, typically a nearby city name. For example, "Tokyo".
 string display_name = 5;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for displayName to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
setField(Descriptors.FieldDescriptor field, Object value)
public Location.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
setLocationId(String value)
public Location.Builder setLocationId(String value) The canonical id for this location. For example: "us-east1".
 string location_id = 4;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe locationId to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
setLocationIdBytes(ByteString value)
public Location.Builder setLocationIdBytes(ByteString value) The canonical id for this location. For example: "us-east1".
 string location_id = 4;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for locationId to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
setMetadata(Any value)
public Location.Builder setMetadata(Any value)Service-specific metadata. For example the available capacity at the given location.
 .google.protobuf.Any metadata = 3;
| Parameter | |
|---|---|
| Name | Description | 
| value | Any | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
setMetadata(Any.Builder builderForValue)
public Location.Builder setMetadata(Any.Builder builderForValue)Service-specific metadata. For example the available capacity at the given location.
 .google.protobuf.Any metadata = 3;
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Builder | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
setName(String value)
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;
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe name to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
setNameBytes(ByteString value)
public Location.Builder setNameBytes(ByteString value) Resource name for the location, which may vary between implementations.
 For example: "projects/example-project/locations/us-east1"
 string name = 1;
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for name to set. | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Location.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |
setUnknownFields(UnknownFieldSet unknownFields)
public final Location.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| Location.Builder | |