Class LocationMetadata.Builder (2.86.0)

public static final class LocationMetadata.Builder extends GeneratedMessage.Builder<LocationMetadata.Builder> implements LocationMetadataOrBuilder

This location metadata represents additional configuration options for a given location where a Redis instance may be created. All fields are output only. It is returned as content of the google.cloud.location.Location.metadata field.

Protobuf type google.cloud.redis.v1beta1.LocationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public LocationMetadata build()
Returns
Type Description
LocationMetadata

buildPartial()

public LocationMetadata buildPartial()
Returns
Type Description
LocationMetadata

clear()

public LocationMetadata.Builder clear()
Returns
Type Description
LocationMetadata.Builder
Overrides

clearAvailableZones()

public LocationMetadata.Builder clearAvailableZones()
Returns
Type Description
LocationMetadata.Builder

containsAvailableZones(String key)

public boolean containsAvailableZones(String key)

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
boolean

getAvailableZones() (deprecated)

public Map<String,ZoneMetadata> getAvailableZones()
Returns
Type Description
Map<String,ZoneMetadata>

getAvailableZonesCount()

public int getAvailableZonesCount()

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getAvailableZonesMap()

public Map<String,ZoneMetadata> getAvailableZonesMap()

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Map<String,ZoneMetadata>

getAvailableZonesOrDefault(String key, ZoneMetadata defaultValue)

public ZoneMetadata getAvailableZonesOrDefault(String key, ZoneMetadata defaultValue)

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
defaultValue ZoneMetadata
Returns
Type Description
ZoneMetadata

getAvailableZonesOrThrow(String key)

public ZoneMetadata getAvailableZonesOrThrow(String key)

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ZoneMetadata

getDefaultInstanceForType()

public LocationMetadata getDefaultInstanceForType()
Returns
Type Description
LocationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMutableAvailableZones() (deprecated)

public Map<String,ZoneMetadata> getMutableAvailableZones()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,ZoneMetadata>

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LocationMetadata other)

public LocationMetadata.Builder mergeFrom(LocationMetadata other)
Parameter
Name Description
other LocationMetadata
Returns
Type Description
LocationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LocationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public LocationMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
LocationMetadata.Builder
Overrides

putAllAvailableZones(Map<String,ZoneMetadata> values)

public LocationMetadata.Builder putAllAvailableZones(Map<String,ZoneMetadata> values)

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Map<String,ZoneMetadata>
Returns
Type Description
LocationMetadata.Builder

putAvailableZones(String key, ZoneMetadata value)

public LocationMetadata.Builder putAvailableZones(String key, ZoneMetadata value)

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
key String
value ZoneMetadata
Returns
Type Description
LocationMetadata.Builder

putAvailableZonesBuilderIfAbsent(String key)

public ZoneMetadata.Builder putAvailableZonesBuilderIfAbsent(String key)

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
ZoneMetadata.Builder

removeAvailableZones(String key)

public LocationMetadata.Builder removeAvailableZones(String key)

Output only. The set of available zones in the location. The map is keyed by the lowercase ID of each zone, as defined by GCE. These keys can be specified in location_id or alternative_location_id fields when creating a Redis instance.

map<string, .google.cloud.redis.v1beta1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
key String
Returns
Type Description
LocationMetadata.Builder