Package com.google.cloud.redis.v1beta1
Class LocationMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
- com.google.cloud.redis.v1beta1.LocationMetadata.Builder
-
- All Implemented Interfaces:
LocationMetadataOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- LocationMetadata
public static final class LocationMetadata.Builder extends com.google.protobuf.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 typegoogle.cloud.redis.v1beta1.LocationMetadata
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
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<LocationMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
clear
public LocationMetadata.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<LocationMetadata.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<LocationMetadata.Builder>
-
getDefaultInstanceForType
public LocationMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public LocationMetadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public LocationMetadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public LocationMetadata.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
setField
public LocationMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
clearField
public LocationMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
clearOneof
public LocationMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
setRepeatedField
public LocationMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
addRepeatedField
public LocationMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
mergeFrom
public LocationMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<LocationMetadata.Builder>
-
mergeFrom
public LocationMetadata.Builder mergeFrom(LocationMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
mergeFrom
public LocationMetadata.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<LocationMetadata.Builder>
- Throws:
IOException
-
getAvailableZonesCount
public int getAvailableZonesCount()
Description copied from interface:LocationMetadataOrBuilder
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];
- Specified by:
getAvailableZonesCount
in interfaceLocationMetadataOrBuilder
-
containsAvailableZones
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];
- Specified by:
containsAvailableZones
in interfaceLocationMetadataOrBuilder
-
getAvailableZones
@Deprecated public Map<String,ZoneMetadata> getAvailableZones()
Deprecated.UsegetAvailableZonesMap()
instead.- Specified by:
getAvailableZones
in interfaceLocationMetadataOrBuilder
-
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];
- Specified by:
getAvailableZonesMap
in interfaceLocationMetadataOrBuilder
-
getAvailableZonesOrDefault
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];
- Specified by:
getAvailableZonesOrDefault
in interfaceLocationMetadataOrBuilder
-
getAvailableZonesOrThrow
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];
- Specified by:
getAvailableZonesOrThrow
in interfaceLocationMetadataOrBuilder
-
clearAvailableZones
public LocationMetadata.Builder clearAvailableZones()
-
removeAvailableZones
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];
-
getMutableAvailableZones
@Deprecated public Map<String,ZoneMetadata> getMutableAvailableZones()
Deprecated.Use alternate mutation accessors instead.
-
putAvailableZones
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];
-
putAllAvailableZones
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];
-
setUnknownFields
public final LocationMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
mergeUnknownFields
public final LocationMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<LocationMetadata.Builder>
-
-