Class LocationMetadata.Builder (2.6.1)

public static final class LocationMetadata.Builder extends GeneratedMessageV3.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.v1.LocationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

build()

public LocationMetadata build()
Returns
TypeDescription
LocationMetadata

buildPartial()

public LocationMetadata buildPartial()
Returns
TypeDescription
LocationMetadata

clear()

public LocationMetadata.Builder clear()
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clearAvailableZones()

public LocationMetadata.Builder clearAvailableZones()
Returns
TypeDescription
LocationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public LocationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LocationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LocationMetadata.Builder
Overrides

clone()

public LocationMetadata.Builder clone()
Returns
TypeDescription
LocationMetadata.Builder
Overrides

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.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getAvailableZones()

public Map<String,ZoneMetadata> getAvailableZones()
Returns
TypeDescription
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.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
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.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
defaultValueZoneMetadata
Returns
TypeDescription
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.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
ZoneMetadata

getDefaultInstanceForType()

public LocationMetadata getDefaultInstanceForType()
Returns
TypeDescription
LocationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableAvailableZones()

public Map<String,ZoneMetadata> getMutableAvailableZones()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,ZoneMetadata>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LocationMetadata other)

public LocationMetadata.Builder mergeFrom(LocationMetadata other)
Parameter
NameDescription
otherLocationMetadata
Returns
TypeDescription
LocationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LocationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LocationMetadata.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LocationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LocationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesMap<String,ZoneMetadata>
Returns
TypeDescription
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.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
valueZoneMetadata
Returns
TypeDescription
LocationMetadata.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.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
LocationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LocationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LocationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LocationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LocationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LocationMetadata.Builder
Overrides