public static final class Instance.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder> implements InstanceOrBuilder
A Google Cloud Redis instance.Protobuf type
google.cloud.redis.v1.Instance| Modifier and Type | Method and Description |
|---|---|
Instance.Builder |
addAllNodes(Iterable<? extends NodeInfo> values)
Output only.
|
Instance.Builder |
addNodes(int index,
NodeInfo.Builder builderForValue)
Output only.
|
Instance.Builder |
addNodes(int index,
NodeInfo value)
Output only.
|
Instance.Builder |
addNodes(NodeInfo.Builder builderForValue)
Output only.
|
Instance.Builder |
addNodes(NodeInfo value)
Output only.
|
NodeInfo.Builder |
addNodesBuilder()
Output only.
|
NodeInfo.Builder |
addNodesBuilder(int index)
Output only.
|
Instance.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Instance |
build() |
Instance |
buildPartial() |
Instance.Builder |
clear() |
Instance.Builder |
clearAlternativeLocationId()
Optional.
|
Instance.Builder |
clearAuthorizedNetwork()
Optional.
|
Instance.Builder |
clearConnectMode()
Optional.
|
Instance.Builder |
clearCreateTime()
Output only.
|
Instance.Builder |
clearCurrentLocationId()
Output only.
|
Instance.Builder |
clearDisplayName()
An arbitrary and optional user-provided name for the instance.
|
Instance.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Instance.Builder |
clearHost()
Output only.
|
Instance.Builder |
clearLabels() |
Instance.Builder |
clearLocationId()
Optional.
|
Instance.Builder |
clearMemorySizeGb()
Required.
|
Instance.Builder |
clearName()
Required.
|
Instance.Builder |
clearNodes()
Output only.
|
Instance.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Instance.Builder |
clearPersistenceIamIdentity()
Output only.
|
Instance.Builder |
clearPort()
Output only.
|
Instance.Builder |
clearReadEndpoint()
Output only.
|
Instance.Builder |
clearReadEndpointPort()
Output only.
|
Instance.Builder |
clearReadReplicasMode()
Optional.
|
Instance.Builder |
clearRedisConfigs() |
Instance.Builder |
clearRedisVersion()
Optional.
|
Instance.Builder |
clearReplicaCount()
Optional.
|
Instance.Builder |
clearReservedIpRange()
Optional.
|
Instance.Builder |
clearState()
Output only.
|
Instance.Builder |
clearStatusMessage()
Output only.
|
Instance.Builder |
clearTier()
Required.
|
Instance.Builder |
clone() |
boolean |
containsLabels(String key)
Resource labels to represent user provided metadata
|
boolean |
containsRedisConfigs(String key)
Optional.
|
String |
getAlternativeLocationId()
Optional.
|
com.google.protobuf.ByteString |
getAlternativeLocationIdBytes()
Optional.
|
String |
getAuthorizedNetwork()
Optional.
|
com.google.protobuf.ByteString |
getAuthorizedNetworkBytes()
Optional.
|
Instance.ConnectMode |
getConnectMode()
Optional.
|
int |
getConnectModeValue()
Optional.
|
com.google.protobuf.Timestamp |
getCreateTime()
Output only.
|
com.google.protobuf.Timestamp.Builder |
getCreateTimeBuilder()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getCreateTimeOrBuilder()
Output only.
|
String |
getCurrentLocationId()
Output only.
|
com.google.protobuf.ByteString |
getCurrentLocationIdBytes()
Output only.
|
Instance |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getDisplayName()
An arbitrary and optional user-provided name for the instance.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
An arbitrary and optional user-provided name for the instance.
|
String |
getHost()
Output only.
|
com.google.protobuf.ByteString |
getHostBytes()
Output only.
|
Map<String,String> |
getLabels()
Deprecated.
|
int |
getLabelsCount()
Resource labels to represent user provided metadata
|
Map<String,String> |
getLabelsMap()
Resource labels to represent user provided metadata
|
String |
getLabelsOrDefault(String key,
String defaultValue)
Resource labels to represent user provided metadata
|
String |
getLabelsOrThrow(String key)
Resource labels to represent user provided metadata
|
String |
getLocationId()
Optional.
|
com.google.protobuf.ByteString |
getLocationIdBytes()
Optional.
|
int |
getMemorySizeGb()
Required.
|
Map<String,String> |
getMutableLabels()
Deprecated.
|
Map<String,String> |
getMutableRedisConfigs()
Deprecated.
|
String |
getName()
Required.
|
com.google.protobuf.ByteString |
getNameBytes()
Required.
|
NodeInfo |
getNodes(int index)
Output only.
|
NodeInfo.Builder |
getNodesBuilder(int index)
Output only.
|
List<NodeInfo.Builder> |
getNodesBuilderList()
Output only.
|
int |
getNodesCount()
Output only.
|
List<NodeInfo> |
getNodesList()
Output only.
|
NodeInfoOrBuilder |
getNodesOrBuilder(int index)
Output only.
|
List<? extends NodeInfoOrBuilder> |
getNodesOrBuilderList()
Output only.
|
String |
getPersistenceIamIdentity()
Output only.
|
com.google.protobuf.ByteString |
getPersistenceIamIdentityBytes()
Output only.
|
int |
getPort()
Output only.
|
String |
getReadEndpoint()
Output only.
|
com.google.protobuf.ByteString |
getReadEndpointBytes()
Output only.
|
int |
getReadEndpointPort()
Output only.
|
Instance.ReadReplicasMode |
getReadReplicasMode()
Optional.
|
int |
getReadReplicasModeValue()
Optional.
|
Map<String,String> |
getRedisConfigs()
Deprecated.
|
int |
getRedisConfigsCount()
Optional.
|
Map<String,String> |
getRedisConfigsMap()
Optional.
|
String |
getRedisConfigsOrDefault(String key,
String defaultValue)
Optional.
|
String |
getRedisConfigsOrThrow(String key)
Optional.
|
String |
getRedisVersion()
Optional.
|
com.google.protobuf.ByteString |
getRedisVersionBytes()
Optional.
|
int |
getReplicaCount()
Optional.
|
String |
getReservedIpRange()
Optional.
|
com.google.protobuf.ByteString |
getReservedIpRangeBytes()
Optional.
|
Instance.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
String |
getStatusMessage()
Output only.
|
com.google.protobuf.ByteString |
getStatusMessageBytes()
Output only.
|
Instance.Tier |
getTier()
Required.
|
int |
getTierValue()
Required.
|
boolean |
hasCreateTime()
Output only.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
protected com.google.protobuf.MapField |
internalGetMutableMapField(int number) |
boolean |
isInitialized() |
Instance.Builder |
mergeCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Instance.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Instance.Builder |
mergeFrom(Instance other) |
Instance.Builder |
mergeFrom(com.google.protobuf.Message other) |
Instance.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Instance.Builder |
putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata
|
Instance.Builder |
putAllRedisConfigs(Map<String,String> values)
Optional.
|
Instance.Builder |
putLabels(String key,
String value)
Resource labels to represent user provided metadata
|
Instance.Builder |
putRedisConfigs(String key,
String value)
Optional.
|
Instance.Builder |
removeLabels(String key)
Resource labels to represent user provided metadata
|
Instance.Builder |
removeNodes(int index)
Output only.
|
Instance.Builder |
removeRedisConfigs(String key)
Optional.
|
Instance.Builder |
setAlternativeLocationId(String value)
Optional.
|
Instance.Builder |
setAlternativeLocationIdBytes(com.google.protobuf.ByteString value)
Optional.
|
Instance.Builder |
setAuthorizedNetwork(String value)
Optional.
|
Instance.Builder |
setAuthorizedNetworkBytes(com.google.protobuf.ByteString value)
Optional.
|
Instance.Builder |
setConnectMode(Instance.ConnectMode value)
Optional.
|
Instance.Builder |
setConnectModeValue(int value)
Optional.
|
Instance.Builder |
setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only.
|
Instance.Builder |
setCreateTime(com.google.protobuf.Timestamp value)
Output only.
|
Instance.Builder |
setCurrentLocationId(String value)
Output only.
|
Instance.Builder |
setCurrentLocationIdBytes(com.google.protobuf.ByteString value)
Output only.
|
Instance.Builder |
setDisplayName(String value)
An arbitrary and optional user-provided name for the instance.
|
Instance.Builder |
setDisplayNameBytes(com.google.protobuf.ByteString value)
An arbitrary and optional user-provided name for the instance.
|
Instance.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Instance.Builder |
setHost(String value)
Output only.
|
Instance.Builder |
setHostBytes(com.google.protobuf.ByteString value)
Output only.
|
Instance.Builder |
setLocationId(String value)
Optional.
|
Instance.Builder |
setLocationIdBytes(com.google.protobuf.ByteString value)
Optional.
|
Instance.Builder |
setMemorySizeGb(int value)
Required.
|
Instance.Builder |
setName(String value)
Required.
|
Instance.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Required.
|
Instance.Builder |
setNodes(int index,
NodeInfo.Builder builderForValue)
Output only.
|
Instance.Builder |
setNodes(int index,
NodeInfo value)
Output only.
|
Instance.Builder |
setPersistenceIamIdentity(String value)
Output only.
|
Instance.Builder |
setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value)
Output only.
|
Instance.Builder |
setPort(int value)
Output only.
|
Instance.Builder |
setReadEndpoint(String value)
Output only.
|
Instance.Builder |
setReadEndpointBytes(com.google.protobuf.ByteString value)
Output only.
|
Instance.Builder |
setReadEndpointPort(int value)
Output only.
|
Instance.Builder |
setReadReplicasMode(Instance.ReadReplicasMode value)
Optional.
|
Instance.Builder |
setReadReplicasModeValue(int value)
Optional.
|
Instance.Builder |
setRedisVersion(String value)
Optional.
|
Instance.Builder |
setRedisVersionBytes(com.google.protobuf.ByteString value)
Optional.
|
Instance.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Instance.Builder |
setReplicaCount(int value)
Optional.
|
Instance.Builder |
setReservedIpRange(String value)
Optional.
|
Instance.Builder |
setReservedIpRangeBytes(com.google.protobuf.ByteString value)
Optional.
|
Instance.Builder |
setState(Instance.State value)
Output only.
|
Instance.Builder |
setStateValue(int value)
Output only.
|
Instance.Builder |
setStatusMessage(String value)
Output only.
|
Instance.Builder |
setStatusMessageBytes(com.google.protobuf.ByteString value)
Output only.
|
Instance.Builder |
setTier(Instance.Tier value)
Required.
|
Instance.Builder |
setTierValue(int value)
Required.
|
Instance.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Instance build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Instance buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Instance.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Builder>public Instance.Builder mergeFrom(Instance other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public Instance.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Instance.Builder>IOExceptionpublic String getName()
Required. Unique name of the resource in this scope including project and
location using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
Note: Redis instances are managed and addressed at regional level so
location_id here refers to a GCP region; however, users may choose which
specific zone (or collection of zones for cross-zone instances) an instance
should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
[alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getName in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Required. Unique name of the resource in this scope including project and
location using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
Note: Redis instances are managed and addressed at regional level so
location_id here refers to a GCP region; however, users may choose which
specific zone (or collection of zones for cross-zone instances) an instance
should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
[alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
string name = 1 [(.google.api.field_behavior) = REQUIRED];getNameBytes in interface InstanceOrBuilderpublic Instance.Builder setName(String value)
Required. Unique name of the resource in this scope including project and
location using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
Note: Redis instances are managed and addressed at regional level so
location_id here refers to a GCP region; however, users may choose which
specific zone (or collection of zones for cross-zone instances) an instance
should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
[alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The name to set.public Instance.Builder clearName()
Required. Unique name of the resource in this scope including project and
location using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
Note: Redis instances are managed and addressed at regional level so
location_id here refers to a GCP region; however, users may choose which
specific zone (or collection of zones for cross-zone instances) an instance
should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
[alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
string name = 1 [(.google.api.field_behavior) = REQUIRED];public Instance.Builder setNameBytes(com.google.protobuf.ByteString value)
Required. Unique name of the resource in this scope including project and
location using the form:
`projects/{project_id}/locations/{location_id}/instances/{instance_id}`
Note: Redis instances are managed and addressed at regional level so
location_id here refers to a GCP region; however, users may choose which
specific zone (or collection of zones for cross-zone instances) an instance
should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
[alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
string name = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for name to set.public String getDisplayName()
An arbitrary and optional user-provided name for the instance.
string display_name = 2;getDisplayName in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
An arbitrary and optional user-provided name for the instance.
string display_name = 2;getDisplayNameBytes in interface InstanceOrBuilderpublic Instance.Builder setDisplayName(String value)
An arbitrary and optional user-provided name for the instance.
string display_name = 2;value - The displayName to set.public Instance.Builder clearDisplayName()
An arbitrary and optional user-provided name for the instance.
string display_name = 2;public Instance.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
An arbitrary and optional user-provided name for the instance.
string display_name = 2;value - The bytes for displayName to set.public int getLabelsCount()
InstanceOrBuilderResource labels to represent user provided metadata
map<string, string> labels = 3;getLabelsCount in interface InstanceOrBuilderpublic boolean containsLabels(String key)
Resource labels to represent user provided metadata
map<string, string> labels = 3;containsLabels in interface InstanceOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface InstanceOrBuilderpublic Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata
map<string, string> labels = 3;getLabelsMap in interface InstanceOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata
map<string, string> labels = 3;getLabelsOrDefault in interface InstanceOrBuilderpublic String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata
map<string, string> labels = 3;getLabelsOrThrow in interface InstanceOrBuilderpublic Instance.Builder clearLabels()
public Instance.Builder removeLabels(String key)
Resource labels to represent user provided metadata
map<string, string> labels = 3;@Deprecated public Map<String,String> getMutableLabels()
public Instance.Builder putLabels(String key, String value)
Resource labels to represent user provided metadata
map<string, string> labels = 3;public Instance.Builder putAllLabels(Map<String,String> values)
Resource labels to represent user provided metadata
map<string, string> labels = 3;public String getLocationId()
Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone.
string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];getLocationId in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getLocationIdBytes()
Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone.
string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];getLocationIdBytes in interface InstanceOrBuilderpublic Instance.Builder setLocationId(String value)
Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone.
string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];value - The locationId to set.public Instance.Builder clearLocationId()
Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone.
string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];public Instance.Builder setLocationIdBytes(com.google.protobuf.ByteString value)
Optional. The zone where the instance will be provisioned. If not provided, the service will choose a zone from the specified region for the instance. For standard tier, additional nodes will be added across multiple zones for protection against zonal failures. If specified, at least one node will be provisioned in this zone.
string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for locationId to set.public String getAlternativeLocationId()
Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service.
string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];getAlternativeLocationId in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getAlternativeLocationIdBytes()
Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service.
string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];getAlternativeLocationIdBytes in interface InstanceOrBuilderpublic Instance.Builder setAlternativeLocationId(String value)
Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service.
string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];value - The alternativeLocationId to set.public Instance.Builder clearAlternativeLocationId()
Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service.
string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];public Instance.Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString value)
Optional. If specified, at least one node will be provisioned in this zone in addition to the zone specified in location_id. Only applicable to standard tier. If provided, it must be a different zone from the one provided in [location_id]. Additional nodes beyond the first 2 will be placed in zones selected by the service.
string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for alternativeLocationId to set.public String getRedisVersion()
Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility
string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];getRedisVersion in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getRedisVersionBytes()
Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility
string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];getRedisVersionBytes in interface InstanceOrBuilderpublic Instance.Builder setRedisVersion(String value)
Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility
string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];value - The redisVersion to set.public Instance.Builder clearRedisVersion()
Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility
string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];public Instance.Builder setRedisVersionBytes(com.google.protobuf.ByteString value)
Optional. The version of Redis software. If not provided, latest supported version will be used. Currently, the supported values are: * `REDIS_3_2` for Redis 3.2 compatibility * `REDIS_4_0` for Redis 4.0 compatibility (default) * `REDIS_5_0` for Redis 5.0 compatibility * `REDIS_6_X` for Redis 6.x compatibility
string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for redisVersion to set.public String getReservedIpRange()
Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28.
string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];getReservedIpRange in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getReservedIpRangeBytes()
Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28.
string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];getReservedIpRangeBytes in interface InstanceOrBuilderpublic Instance.Builder setReservedIpRange(String value)
Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28.
string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];value - The reservedIpRange to set.public Instance.Builder clearReservedIpRange()
Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28.
string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];public Instance.Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value)
Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses that are reserved for this instance. Range must be unique and non-overlapping with existing subnets in an authorized network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP address ranges associated with this private service access connection. If not provided, the service will choose an unused /29 block, for example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED the default block size is /28.
string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for reservedIpRange to set.public String getHost()
Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];getHost in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getHostBytes()
Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];getHostBytes in interface InstanceOrBuilderpublic Instance.Builder setHost(String value)
Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The host to set.public Instance.Builder clearHost()
Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];public Instance.Builder setHostBytes(com.google.protobuf.ByteString value)
Output only. Hostname or IP address of the exposed Redis endpoint used by clients to connect to the service.
string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for host to set.public int getPort()
Output only. The port number of the exposed Redis endpoint.
int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];getPort in interface InstanceOrBuilderpublic Instance.Builder setPort(int value)
Output only. The port number of the exposed Redis endpoint.
int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The port to set.public Instance.Builder clearPort()
Output only. The port number of the exposed Redis endpoint.
int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];public String getCurrentLocationId()
Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance.
string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];getCurrentLocationId in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getCurrentLocationIdBytes()
Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance.
string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];getCurrentLocationIdBytes in interface InstanceOrBuilderpublic Instance.Builder setCurrentLocationId(String value)
Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance.
string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The currentLocationId to set.public Instance.Builder clearCurrentLocationId()
Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance.
string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];public Instance.Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value)
Output only. The current zone where the Redis primary node is located. In basic tier, this will always be the same as [location_id]. In standard tier, this can be the zone of any node in the instance.
string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for currentLocationId to set.public boolean hasCreateTime()
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasCreateTime in interface InstanceOrBuilderpublic com.google.protobuf.Timestamp getCreateTime()
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTime in interface InstanceOrBuilderpublic Instance.Builder setCreateTime(com.google.protobuf.Timestamp value)
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder clearCreateTime()
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getCreateTimeOrBuilder in interface InstanceOrBuilderpublic int getStateValue()
Output only. The current state of this instance.
.google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface InstanceOrBuilderpublic Instance.Builder setStateValue(int value)
Output only. The current state of this instance.
.google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The enum numeric value on the wire for state to set.public Instance.State getState()
Output only. The current state of this instance.
.google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface InstanceOrBuilderpublic Instance.Builder setState(Instance.State value)
Output only. The current state of this instance.
.google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The state to set.public Instance.Builder clearState()
Output only. The current state of this instance.
.google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getStatusMessage()
Output only. Additional information about the current status of this instance, if available.
string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];getStatusMessage in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getStatusMessageBytes()
Output only. Additional information about the current status of this instance, if available.
string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];getStatusMessageBytes in interface InstanceOrBuilderpublic Instance.Builder setStatusMessage(String value)
Output only. Additional information about the current status of this instance, if available.
string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The statusMessage to set.public Instance.Builder clearStatusMessage()
Output only. Additional information about the current status of this instance, if available.
string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];public Instance.Builder setStatusMessageBytes(com.google.protobuf.ByteString value)
Output only. Additional information about the current status of this instance, if available.
string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for statusMessage to set.public int getRedisConfigsCount()
InstanceOrBuilderOptional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
getRedisConfigsCount in interface InstanceOrBuilderpublic boolean containsRedisConfigs(String key)
Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
containsRedisConfigs in interface InstanceOrBuilder@Deprecated public Map<String,String> getRedisConfigs()
getRedisConfigsMap() instead.getRedisConfigs in interface InstanceOrBuilderpublic Map<String,String> getRedisConfigsMap()
Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
getRedisConfigsMap in interface InstanceOrBuilderpublic String getRedisConfigsOrDefault(String key, String defaultValue)
Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
getRedisConfigsOrDefault in interface InstanceOrBuilderpublic String getRedisConfigsOrThrow(String key)
Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
getRedisConfigsOrThrow in interface InstanceOrBuilderpublic Instance.Builder clearRedisConfigs()
public Instance.Builder removeRedisConfigs(String key)
Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
@Deprecated public Map<String,String> getMutableRedisConfigs()
public Instance.Builder putRedisConfigs(String key, String value)
Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
public Instance.Builder putAllRedisConfigs(Map<String,String> values)
Optional. Redis configuration parameters, according to http://redis.io/topics/config. Currently, the only supported parameters are: Redis version 3.2 and newer: * maxmemory-policy * notify-keyspace-events Redis version 4.0 and newer: * activedefrag * lfu-decay-time * lfu-log-factor * maxmemory-gb Redis version 5.0 and newer: * stream-node-max-bytes * stream-node-max-entries
map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
public int getTierValue()
Required. The service tier of the instance.
.google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
getTierValue in interface InstanceOrBuilderpublic Instance.Builder setTierValue(int value)
Required. The service tier of the instance.
.google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
value - The enum numeric value on the wire for tier to set.public Instance.Tier getTier()
Required. The service tier of the instance.
.google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
getTier in interface InstanceOrBuilderpublic Instance.Builder setTier(Instance.Tier value)
Required. The service tier of the instance.
.google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
value - The tier to set.public Instance.Builder clearTier()
Required. The service tier of the instance.
.google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
public int getMemorySizeGb()
Required. Redis memory size in GiB.
int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];getMemorySizeGb in interface InstanceOrBuilderpublic Instance.Builder setMemorySizeGb(int value)
Required. Redis memory size in GiB.
int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];value - The memorySizeGb to set.public Instance.Builder clearMemorySizeGb()
Required. Redis memory size in GiB.
int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];public String getAuthorizedNetwork()
Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.
string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];getAuthorizedNetwork in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getAuthorizedNetworkBytes()
Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.
string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];getAuthorizedNetworkBytes in interface InstanceOrBuilderpublic Instance.Builder setAuthorizedNetwork(String value)
Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.
string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];value - The authorizedNetwork to set.public Instance.Builder clearAuthorizedNetwork()
Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.
string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];public Instance.Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value)
Optional. The full name of the Google Compute Engine [network](https://cloud.google.com/vpc/docs/vpc) to which the instance is connected. If left unspecified, the `default` network will be used.
string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];value - The bytes for authorizedNetwork to set.public String getPersistenceIamIdentity()
Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:<service_account_email>". The value may change over time for a given instance so should be checked before each import/export operation.
string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPersistenceIamIdentity in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getPersistenceIamIdentityBytes()
Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:<service_account_email>". The value may change over time for a given instance so should be checked before each import/export operation.
string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
getPersistenceIamIdentityBytes in interface InstanceOrBuilderpublic Instance.Builder setPersistenceIamIdentity(String value)
Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:<service_account_email>". The value may change over time for a given instance so should be checked before each import/export operation.
string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The persistenceIamIdentity to set.public Instance.Builder clearPersistenceIamIdentity()
Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:<service_account_email>". The value may change over time for a given instance so should be checked before each import/export operation.
string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value)
Output only. Cloud IAM identity used by import / export operations to transfer data to/from Cloud Storage. Format is "serviceAccount:<service_account_email>". The value may change over time for a given instance so should be checked before each import/export operation.
string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
value - The bytes for persistenceIamIdentity to set.public int getConnectModeValue()
Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
.google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
getConnectModeValue in interface InstanceOrBuilderpublic Instance.Builder setConnectModeValue(int value)
Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
.google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for connectMode to set.public Instance.ConnectMode getConnectMode()
Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
.google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
getConnectMode in interface InstanceOrBuilderpublic Instance.Builder setConnectMode(Instance.ConnectMode value)
Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
.google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
value - The connectMode to set.public Instance.Builder clearConnectMode()
Optional. The network connect mode of the Redis instance. If not provided, the connect mode defaults to DIRECT_PEERING.
.google.cloud.redis.v1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
public int getReplicaCount()
Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 1. Valid value for basic tier is 0 and defaults to 0.
int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];getReplicaCount in interface InstanceOrBuilderpublic Instance.Builder setReplicaCount(int value)
Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 1. Valid value for basic tier is 0 and defaults to 0.
int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];value - The replicaCount to set.public Instance.Builder clearReplicaCount()
Optional. The number of replica nodes. Valid range for standard tier is [1-5] and defaults to 1. Valid value for basic tier is 0 and defaults to 0.
int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];public List<NodeInfo> getNodesList()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodesList in interface InstanceOrBuilderpublic int getNodesCount()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodesCount in interface InstanceOrBuilderpublic NodeInfo getNodes(int index)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodes in interface InstanceOrBuilderpublic Instance.Builder setNodes(int index, NodeInfo value)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder setNodes(int index, NodeInfo.Builder builderForValue)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder addNodes(NodeInfo value)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder addNodes(int index, NodeInfo value)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder addNodes(NodeInfo.Builder builderForValue)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder addNodes(int index, NodeInfo.Builder builderForValue)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder addAllNodes(Iterable<? extends NodeInfo> values)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder clearNodes()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public Instance.Builder removeNodes(int index)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public NodeInfo.Builder getNodesBuilder(int index)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public NodeInfoOrBuilder getNodesOrBuilder(int index)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodesOrBuilder in interface InstanceOrBuilderpublic List<? extends NodeInfoOrBuilder> getNodesOrBuilderList()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
getNodesOrBuilderList in interface InstanceOrBuilderpublic NodeInfo.Builder addNodesBuilder()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public NodeInfo.Builder addNodesBuilder(int index)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public List<NodeInfo.Builder> getNodesBuilderList()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
public String getReadEndpoint()
Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.
string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];getReadEndpoint in interface InstanceOrBuilderpublic com.google.protobuf.ByteString getReadEndpointBytes()
Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.
string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];getReadEndpointBytes in interface InstanceOrBuilderpublic Instance.Builder setReadEndpoint(String value)
Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.
string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The readEndpoint to set.public Instance.Builder clearReadEndpoint()
Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.
string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];public Instance.Builder setReadEndpointBytes(com.google.protobuf.ByteString value)
Output only. Hostname or IP address of the exposed readonly Redis endpoint. Standard tier only. Targets all healthy replica nodes in instance. Replication is asynchronous and replica nodes will exhibit some lag behind the primary. Write requests must target 'host'.
string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The bytes for readEndpoint to set.public int getReadEndpointPort()
Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'.
int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];getReadEndpointPort in interface InstanceOrBuilderpublic Instance.Builder setReadEndpointPort(int value)
Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'.
int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];value - The readEndpointPort to set.public Instance.Builder clearReadEndpointPort()
Output only. The port number of the exposed readonly redis endpoint. Standard tier only. Write requests should target 'port'.
int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];public int getReadReplicasModeValue()
Optional. Read replica mode.
.google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
getReadReplicasModeValue in interface InstanceOrBuilderpublic Instance.Builder setReadReplicasModeValue(int value)
Optional. Read replica mode.
.google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
value - The enum numeric value on the wire for readReplicasMode to set.public Instance.ReadReplicasMode getReadReplicasMode()
Optional. Read replica mode.
.google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
getReadReplicasMode in interface InstanceOrBuilderpublic Instance.Builder setReadReplicasMode(Instance.ReadReplicasMode value)
Optional. Read replica mode.
.google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
value - The readReplicasMode to set.public Instance.Builder clearReadReplicasMode()
Optional. Read replica mode.
.google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
public final Instance.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>public final Instance.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Instance.Builder>Copyright © 2022 Google LLC. All rights reserved.