- 2.61.3 (latest)
- 2.61.2
- 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()| Type | Description |
| Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Location.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| Type | Description |
| Location.Builder |
build()
public Location build()| Type | Description |
| Location |
buildPartial()
public Location buildPartial()| Type | Description |
| Location |
clear()
public Location.Builder clear()| 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;
| Type | Description |
| Location.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Location.Builder clearField(Descriptors.FieldDescriptor field)| Name | Description |
| field | FieldDescriptor |
| Type | Description |
| Location.Builder |
clearLabels()
public Location.Builder clearLabels()| Type | Description |
| Location.Builder |
clearLocationId()
public Location.Builder clearLocationId() The canonical id for this location. For example: "us-east1".
string location_id = 4;
| 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;
| 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;
| Type | Description |
| Location.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Location.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Name | Description |
| oneof | OneofDescriptor |
| Type | Description |
| Location.Builder |
clone()
public Location.Builder clone()| 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;
| Name | Description |
| key | String |
| Type | Description |
| boolean |
getDefaultInstanceForType()
public Location getDefaultInstanceForType()| Type | Description |
| Location |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| 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;
| 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;
| Type | Description |
| ByteString | The bytes for displayName. |
getLabels()
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| 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;
| 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;
| 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;
| Name | Description |
| key | String |
| defaultValue | String |
| 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;
| Name | Description |
| key | String |
| Type | Description |
| String |
getLocationId()
public String getLocationId() The canonical id for this location. For example: "us-east1".
string location_id = 4;
| Type | Description |
| String | The locationId. |
getLocationIdBytes()
public ByteString getLocationIdBytes() The canonical id for this location. For example: "us-east1".
string location_id = 4;
| 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;
| 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;
| Type | Description |
| Builder |
getMetadataOrBuilder()
public AnyOrBuilder getMetadataOrBuilder()Service-specific metadata. For example the available capacity at the given location.
.google.protobuf.Any metadata = 3;
| Type | Description |
| AnyOrBuilder |
getMutableLabels()
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| 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;
| 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;
| 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;
| Type | Description |
| boolean | Whether the metadata field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Type | Description |
| FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)| Name | Description |
| number | int |
| Type | Description |
| MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)| Name | Description |
| number | int |
| Type | Description |
| MapField |
isInitialized()
public final boolean isInitialized()| Type | Description |
| boolean |
mergeFrom(Location other)
public Location.Builder mergeFrom(Location other)| Name | Description |
| other | Location |
| Type | Description |
| Location.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Name | Description |
| input | CodedInputStream |
| extensionRegistry | ExtensionRegistryLite |
| Type | Description |
| Location.Builder |
| Type | Description |
| IOException |
mergeFrom(Message other)
public Location.Builder mergeFrom(Message other)| Name | Description |
| other | Message |
| 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;
| Name | Description |
| value | Any |
| Type | Description |
| Location.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Location.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| 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;
| Name | Description |
| values | Map<String,String> |
| 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;
| Name | Description |
| key | String |
| value | String |
| 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;
| Name | Description |
| key | String |
| 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;
| Name | Description |
| value | StringThe displayName to set. |
| 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;
| Name | Description |
| value | ByteStringThe bytes for displayName to set. |
| Type | Description |
| Location.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Location.Builder setField(Descriptors.FieldDescriptor field, Object value)| Name | Description |
| field | FieldDescriptor |
| value | Object |
| 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;
| Name | Description |
| value | StringThe locationId to set. |
| 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;
| Name | Description |
| value | ByteStringThe bytes for locationId to set. |
| 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;
| Name | Description |
| value | Any |
| 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;
| Name | Description |
| builderForValue | Builder |
| 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;
| Name | Description |
| value | StringThe name to set. |
| 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;
| Name | Description |
| value | ByteStringThe bytes for name to set. |
| 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)| Name | Description |
| field | FieldDescriptor |
| index | int |
| value | Object |
| Type | Description |
| Location.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Location.Builder setUnknownFields(UnknownFieldSet unknownFields)| Name | Description |
| unknownFields | UnknownFieldSet |
| Type | Description |
| Location.Builder |