Package com.google.cloud.redis.v1
Class Instance
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.redis.v1.Instance
-
- All Implemented Interfaces:
InstanceOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Instance extends com.google.protobuf.GeneratedMessageV3 implements InstanceOrBuilder
A Memorystore for Redis instance.
Protobuf typegoogle.cloud.redis.v1.Instance
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Instance.Builder
A Memorystore for Redis instance.static class
Instance.ConnectMode
Available connection modes.static class
Instance.ReadReplicasMode
Read replicas mode.static class
Instance.State
Represents the different states of a Redis instance.static class
Instance.SuspensionReason
Possible reasons for the instance to be in a "SUSPENDED" state.static class
Instance.Tier
Available service tiers to choose fromstatic class
Instance.TransitEncryptionMode
Available TLS modes.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Resource labels to represent user provided metadataboolean
containsRedisConfigs(String key)
Optional.boolean
equals(Object obj)
String
getAlternativeLocationId()
Optional.com.google.protobuf.ByteString
getAlternativeLocationIdBytes()
Optional.boolean
getAuthEnabled()
Optional.String
getAuthorizedNetwork()
Optional.com.google.protobuf.ByteString
getAuthorizedNetworkBytes()
Optional.String
getAvailableMaintenanceVersions(int index)
Optional.com.google.protobuf.ByteString
getAvailableMaintenanceVersionsBytes(int index)
Optional.int
getAvailableMaintenanceVersionsCount()
Optional.com.google.protobuf.ProtocolStringList
getAvailableMaintenanceVersionsList()
Optional.Instance.ConnectMode
getConnectMode()
Optional.int
getConnectModeValue()
Optional.com.google.protobuf.Timestamp
getCreateTime()
Output only.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
Output only.String
getCurrentLocationId()
Output only.com.google.protobuf.ByteString
getCurrentLocationIdBytes()
Output only.String
getCustomerManagedKey()
Optional.com.google.protobuf.ByteString
getCustomerManagedKeyBytes()
Optional.static Instance
getDefaultInstance()
Instance
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
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 metadataMap<String,String>
getLabelsMap()
Resource labels to represent user provided metadataString
getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadataString
getLabelsOrThrow(String key)
Resource labels to represent user provided metadataString
getLocationId()
Optional.com.google.protobuf.ByteString
getLocationIdBytes()
Optional.MaintenancePolicy
getMaintenancePolicy()
Optional.MaintenancePolicyOrBuilder
getMaintenancePolicyOrBuilder()
Optional.MaintenanceSchedule
getMaintenanceSchedule()
Output only.MaintenanceScheduleOrBuilder
getMaintenanceScheduleOrBuilder()
Output only.String
getMaintenanceVersion()
Optional.com.google.protobuf.ByteString
getMaintenanceVersionBytes()
Optional.int
getMemorySizeGb()
Required.String
getName()
Required.com.google.protobuf.ByteString
getNameBytes()
Required.NodeInfo
getNodes(int index)
Output only.int
getNodesCount()
Output only.List<NodeInfo>
getNodesList()
Output only.NodeInfoOrBuilder
getNodesOrBuilder(int index)
Output only.List<? extends NodeInfoOrBuilder>
getNodesOrBuilderList()
Output only.com.google.protobuf.Parser<Instance>
getParserForType()
PersistenceConfig
getPersistenceConfig()
Optional.PersistenceConfigOrBuilder
getPersistenceConfigOrBuilder()
Optional.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.String
getSecondaryIpRange()
Optional.com.google.protobuf.ByteString
getSecondaryIpRangeBytes()
Optional.int
getSerializedSize()
TlsCertificate
getServerCaCerts(int index)
Output only.int
getServerCaCertsCount()
Output only.List<TlsCertificate>
getServerCaCertsList()
Output only.TlsCertificateOrBuilder
getServerCaCertsOrBuilder(int index)
Output only.List<? extends TlsCertificateOrBuilder>
getServerCaCertsOrBuilderList()
Output only.Instance.State
getState()
Output only.int
getStateValue()
Output only.String
getStatusMessage()
Output only.com.google.protobuf.ByteString
getStatusMessageBytes()
Output only.Instance.SuspensionReason
getSuspensionReasons(int index)
Optional.int
getSuspensionReasonsCount()
Optional.List<Instance.SuspensionReason>
getSuspensionReasonsList()
Optional.int
getSuspensionReasonsValue(int index)
Optional.List<Integer>
getSuspensionReasonsValueList()
Optional.Instance.Tier
getTier()
Required.int
getTierValue()
Required.Instance.TransitEncryptionMode
getTransitEncryptionMode()
Optional.int
getTransitEncryptionModeValue()
Optional.boolean
hasCreateTime()
Output only.int
hashCode()
boolean
hasMaintenancePolicy()
Optional.boolean
hasMaintenanceSchedule()
Output only.boolean
hasPersistenceConfig()
Optional.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static Instance.Builder
newBuilder()
static Instance.Builder
newBuilder(Instance prototype)
Instance.Builder
newBuilderForType()
protected Instance.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Instance
parseDelimitedFrom(InputStream input)
static Instance
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(byte[] data)
static Instance
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(com.google.protobuf.ByteString data)
static Instance
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(com.google.protobuf.CodedInputStream input)
static Instance
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(InputStream input)
static Instance
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Instance
parseFrom(ByteBuffer data)
static Instance
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Instance>
parser()
Instance.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCATION_ID_FIELD_NUMBER
public static final int LOCATION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALTERNATIVE_LOCATION_ID_FIELD_NUMBER
public static final int ALTERNATIVE_LOCATION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REDIS_VERSION_FIELD_NUMBER
public static final int REDIS_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESERVED_IP_RANGE_FIELD_NUMBER
public static final int RESERVED_IP_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SECONDARY_IP_RANGE_FIELD_NUMBER
public static final int SECONDARY_IP_RANGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CURRENT_LOCATION_ID_FIELD_NUMBER
public static final int CURRENT_LOCATION_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATUS_MESSAGE_FIELD_NUMBER
public static final int STATUS_MESSAGE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REDIS_CONFIGS_FIELD_NUMBER
public static final int REDIS_CONFIGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TIER_FIELD_NUMBER
public static final int TIER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MEMORY_SIZE_GB_FIELD_NUMBER
public static final int MEMORY_SIZE_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTHORIZED_NETWORK_FIELD_NUMBER
public static final int AUTHORIZED_NETWORK_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERSISTENCE_IAM_IDENTITY_FIELD_NUMBER
public static final int PERSISTENCE_IAM_IDENTITY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CONNECT_MODE_FIELD_NUMBER
public static final int CONNECT_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AUTH_ENABLED_FIELD_NUMBER
public static final int AUTH_ENABLED_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SERVER_CA_CERTS_FIELD_NUMBER
public static final int SERVER_CA_CERTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER
public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAINTENANCE_POLICY_FIELD_NUMBER
public static final int MAINTENANCE_POLICY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAINTENANCE_SCHEDULE_FIELD_NUMBER
public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REPLICA_COUNT_FIELD_NUMBER
public static final int REPLICA_COUNT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NODES_FIELD_NUMBER
public static final int NODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
READ_ENDPOINT_FIELD_NUMBER
public static final int READ_ENDPOINT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
READ_ENDPOINT_PORT_FIELD_NUMBER
public static final int READ_ENDPOINT_PORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
READ_REPLICAS_MODE_FIELD_NUMBER
public static final int READ_REPLICAS_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CUSTOMER_MANAGED_KEY_FIELD_NUMBER
public static final int CUSTOMER_MANAGED_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PERSISTENCE_CONFIG_FIELD_NUMBER
public static final int PERSISTENCE_CONFIG_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SUSPENSION_REASONS_FIELD_NUMBER
public static final int SUSPENSION_REASONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAINTENANCE_VERSION_FIELD_NUMBER
public static final int MAINTENANCE_VERSION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
AVAILABLE_MAINTENANCE_VERSIONS_FIELD_NUMBER
public static final int AVAILABLE_MAINTENANCE_VERSIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public 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];
- Specified by:
getName
in interfaceInstanceOrBuilder
- Returns:
- The name.
-
getNameBytes
public 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];
- Specified by:
getNameBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for name.
-
getDisplayName
public String getDisplayName()
An arbitrary and optional user-provided name for the instance.
string display_name = 2;
- Specified by:
getDisplayName
in interfaceInstanceOrBuilder
- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()
An arbitrary and optional user-provided name for the instance.
string display_name = 2;
- Specified by:
getDisplayNameBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for displayName.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:InstanceOrBuilder
Resource labels to represent user provided metadata
map<string, string> labels = 3;
- Specified by:
getLabelsCount
in interfaceInstanceOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user provided metadata
map<string, string> labels = 3;
- Specified by:
containsLabels
in interfaceInstanceOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceInstanceOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata
map<string, string> labels = 3;
- Specified by:
getLabelsMap
in interfaceInstanceOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata
map<string, string> labels = 3;
- Specified by:
getLabelsOrDefault
in interfaceInstanceOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata
map<string, string> labels = 3;
- Specified by:
getLabelsOrThrow
in interfaceInstanceOrBuilder
-
getLocationId
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];
- Specified by:
getLocationId
in interfaceInstanceOrBuilder
- Returns:
- The locationId.
-
getLocationIdBytes
public 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];
- Specified by:
getLocationIdBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for locationId.
-
getAlternativeLocationId
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];
- Specified by:
getAlternativeLocationId
in interfaceInstanceOrBuilder
- Returns:
- The alternativeLocationId.
-
getAlternativeLocationIdBytes
public 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];
- Specified by:
getAlternativeLocationIdBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for alternativeLocationId.
-
getRedisVersion
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];
- Specified by:
getRedisVersion
in interfaceInstanceOrBuilder
- Returns:
- The redisVersion.
-
getRedisVersionBytes
public 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];
- Specified by:
getRedisVersionBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for redisVersion.
-
getReservedIpRange
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];
- Specified by:
getReservedIpRange
in interfaceInstanceOrBuilder
- Returns:
- The reservedIpRange.
-
getReservedIpRangeBytes
public 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];
- Specified by:
getReservedIpRangeBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for reservedIpRange.
-
getSecondaryIpRange
public String getSecondaryIpRange()
Optional. Additional IP range for node placement. Required when enabling read replicas on an existing instance. For DIRECT_PEERING mode value must be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value must be the name of an allocated address range associated with the private service access connection, or "auto".
string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSecondaryIpRange
in interfaceInstanceOrBuilder
- Returns:
- The secondaryIpRange.
-
getSecondaryIpRangeBytes
public com.google.protobuf.ByteString getSecondaryIpRangeBytes()
Optional. Additional IP range for node placement. Required when enabling read replicas on an existing instance. For DIRECT_PEERING mode value must be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value must be the name of an allocated address range associated with the private service access connection, or "auto".
string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSecondaryIpRangeBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for secondaryIpRange.
-
getHost
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];
- Specified by:
getHost
in interfaceInstanceOrBuilder
- Returns:
- The host.
-
getHostBytes
public 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];
- Specified by:
getHostBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for host.
-
getPort
public int getPort()
Output only. The port number of the exposed Redis endpoint.
int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getPort
in interfaceInstanceOrBuilder
- Returns:
- The port.
-
getCurrentLocationId
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];
- Specified by:
getCurrentLocationId
in interfaceInstanceOrBuilder
- Returns:
- The currentLocationId.
-
getCurrentLocationIdBytes
public 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];
- Specified by:
getCurrentLocationIdBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for currentLocationId.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time the instance was created.
.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasCreateTime
in interfaceInstanceOrBuilder
- Returns:
- Whether the createTime field is set.
-
getCreateTime
public 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];
- Specified by:
getCreateTime
in interfaceInstanceOrBuilder
- Returns:
- The createTime.
-
getCreateTimeOrBuilder
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];
- Specified by:
getCreateTimeOrBuilder
in interfaceInstanceOrBuilder
-
getStateValue
public int getStateValue()
Output only. The current state of this instance.
.google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getStateValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
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];
- Specified by:
getState
in interfaceInstanceOrBuilder
- Returns:
- The state.
-
getStatusMessage
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];
- Specified by:
getStatusMessage
in interfaceInstanceOrBuilder
- Returns:
- The statusMessage.
-
getStatusMessageBytes
public 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];
- Specified by:
getStatusMessageBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for statusMessage.
-
getRedisConfigsCount
public int getRedisConfigsCount()
Description copied from interface:InstanceOrBuilder
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];
- Specified by:
getRedisConfigsCount
in interfaceInstanceOrBuilder
-
containsRedisConfigs
public 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];
- Specified by:
containsRedisConfigs
in interfaceInstanceOrBuilder
-
getRedisConfigs
@Deprecated public Map<String,String> getRedisConfigs()
Deprecated.UsegetRedisConfigsMap()
instead.- Specified by:
getRedisConfigs
in interfaceInstanceOrBuilder
-
getRedisConfigsMap
public 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];
- Specified by:
getRedisConfigsMap
in interfaceInstanceOrBuilder
-
getRedisConfigsOrDefault
public 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];
- Specified by:
getRedisConfigsOrDefault
in interfaceInstanceOrBuilder
-
getRedisConfigsOrThrow
public 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];
- Specified by:
getRedisConfigsOrThrow
in interfaceInstanceOrBuilder
-
getTierValue
public int getTierValue()
Required. The service tier of the instance.
.google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTierValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for tier.
-
getTier
public Instance.Tier getTier()
Required. The service tier of the instance.
.google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getTier
in interfaceInstanceOrBuilder
- Returns:
- The tier.
-
getMemorySizeGb
public int getMemorySizeGb()
Required. Redis memory size in GiB.
int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getMemorySizeGb
in interfaceInstanceOrBuilder
- Returns:
- The memorySizeGb.
-
getAuthorizedNetwork
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];
- Specified by:
getAuthorizedNetwork
in interfaceInstanceOrBuilder
- Returns:
- The authorizedNetwork.
-
getAuthorizedNetworkBytes
public 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];
- Specified by:
getAuthorizedNetworkBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for authorizedNetwork.
-
getPersistenceIamIdentity
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];
- Specified by:
getPersistenceIamIdentity
in interfaceInstanceOrBuilder
- Returns:
- The persistenceIamIdentity.
-
getPersistenceIamIdentityBytes
public 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];
- Specified by:
getPersistenceIamIdentityBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for persistenceIamIdentity.
-
getConnectModeValue
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];
- Specified by:
getConnectModeValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for connectMode.
-
getConnectMode
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];
- Specified by:
getConnectMode
in interfaceInstanceOrBuilder
- Returns:
- The connectMode.
-
getAuthEnabled
public boolean getAuthEnabled()
Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to "true" AUTH is enabled on the instance. Default value is "false" meaning AUTH is disabled.
bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAuthEnabled
in interfaceInstanceOrBuilder
- Returns:
- The authEnabled.
-
getServerCaCertsList
public List<TlsCertificate> getServerCaCertsList()
Output only. List of server CA certificates for the instance.
repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServerCaCertsList
in interfaceInstanceOrBuilder
-
getServerCaCertsOrBuilderList
public List<? extends TlsCertificateOrBuilder> getServerCaCertsOrBuilderList()
Output only. List of server CA certificates for the instance.
repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServerCaCertsOrBuilderList
in interfaceInstanceOrBuilder
-
getServerCaCertsCount
public int getServerCaCertsCount()
Output only. List of server CA certificates for the instance.
repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServerCaCertsCount
in interfaceInstanceOrBuilder
-
getServerCaCerts
public TlsCertificate getServerCaCerts(int index)
Output only. List of server CA certificates for the instance.
repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServerCaCerts
in interfaceInstanceOrBuilder
-
getServerCaCertsOrBuilder
public TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index)
Output only. List of server CA certificates for the instance.
repeated .google.cloud.redis.v1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getServerCaCertsOrBuilder
in interfaceInstanceOrBuilder
-
getTransitEncryptionModeValue
public int getTransitEncryptionModeValue()
Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance.
.google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTransitEncryptionModeValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for transitEncryptionMode.
-
getTransitEncryptionMode
public Instance.TransitEncryptionMode getTransitEncryptionMode()
Optional. The TLS mode of the Redis instance. If not provided, TLS is disabled for the instance.
.google.cloud.redis.v1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getTransitEncryptionMode
in interfaceInstanceOrBuilder
- Returns:
- The transitEncryptionMode.
-
hasMaintenancePolicy
public boolean hasMaintenancePolicy()
Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time.
.google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasMaintenancePolicy
in interfaceInstanceOrBuilder
- Returns:
- Whether the maintenancePolicy field is set.
-
getMaintenancePolicy
public MaintenancePolicy getMaintenancePolicy()
Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time.
.google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMaintenancePolicy
in interfaceInstanceOrBuilder
- Returns:
- The maintenancePolicy.
-
getMaintenancePolicyOrBuilder
public MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder()
Optional. The maintenance policy for the instance. If not provided, maintenance events can be performed at any time.
.google.cloud.redis.v1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMaintenancePolicyOrBuilder
in interfaceInstanceOrBuilder
-
hasMaintenanceSchedule
public boolean hasMaintenanceSchedule()
Output only. Date and time of upcoming maintenance events which have been scheduled.
.google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
hasMaintenanceSchedule
in interfaceInstanceOrBuilder
- Returns:
- Whether the maintenanceSchedule field is set.
-
getMaintenanceSchedule
public MaintenanceSchedule getMaintenanceSchedule()
Output only. Date and time of upcoming maintenance events which have been scheduled.
.google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMaintenanceSchedule
in interfaceInstanceOrBuilder
- Returns:
- The maintenanceSchedule.
-
getMaintenanceScheduleOrBuilder
public MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()
Output only. Date and time of upcoming maintenance events which have been scheduled.
.google.cloud.redis.v1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getMaintenanceScheduleOrBuilder
in interfaceInstanceOrBuilder
-
getReplicaCount
public int getReplicaCount()
Optional. The number of replica nodes. The valid range for the Standard Tier with read replicas enabled is [1-5] and defaults to 2. If read replicas are not enabled for a Standard Tier instance, the only valid value is 1 and the default is 1. The valid value for basic tier is 0 and the default is also 0.
int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReplicaCount
in interfaceInstanceOrBuilder
- Returns:
- The replicaCount.
-
getNodesList
public List<NodeInfo> getNodesList()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNodesList
in interfaceInstanceOrBuilder
-
getNodesOrBuilderList
public List<? extends NodeInfoOrBuilder> getNodesOrBuilderList()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNodesOrBuilderList
in interfaceInstanceOrBuilder
-
getNodesCount
public int getNodesCount()
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNodesCount
in interfaceInstanceOrBuilder
-
getNodes
public NodeInfo getNodes(int index)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNodes
in interfaceInstanceOrBuilder
-
getNodesOrBuilder
public NodeInfoOrBuilder getNodesOrBuilder(int index)
Output only. Info per node.
repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
- Specified by:
getNodesOrBuilder
in interfaceInstanceOrBuilder
-
getReadEndpoint
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];
- Specified by:
getReadEndpoint
in interfaceInstanceOrBuilder
- Returns:
- The readEndpoint.
-
getReadEndpointBytes
public 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];
- Specified by:
getReadEndpointBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for readEndpoint.
-
getReadEndpointPort
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];
- Specified by:
getReadEndpointPort
in interfaceInstanceOrBuilder
- Returns:
- The readEndpointPort.
-
getReadReplicasModeValue
public int getReadReplicasModeValue()
Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
.google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReadReplicasModeValue
in interfaceInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for readReplicasMode.
-
getReadReplicasMode
public Instance.ReadReplicasMode getReadReplicasMode()
Optional. Read replicas mode for the instance. Defaults to READ_REPLICAS_DISABLED.
.google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getReadReplicasMode
in interfaceInstanceOrBuilder
- Returns:
- The readReplicasMode.
-
getCustomerManagedKey
public String getCustomerManagedKey()
Optional. The KMS key reference that the customer provides when trying to create the instance.
string customer_managed_key = 36 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getCustomerManagedKey
in interfaceInstanceOrBuilder
- Returns:
- The customerManagedKey.
-
getCustomerManagedKeyBytes
public com.google.protobuf.ByteString getCustomerManagedKeyBytes()
Optional. The KMS key reference that the customer provides when trying to create the instance.
string customer_managed_key = 36 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getCustomerManagedKeyBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for customerManagedKey.
-
hasPersistenceConfig
public boolean hasPersistenceConfig()
Optional. Persistence configuration parameters
.google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasPersistenceConfig
in interfaceInstanceOrBuilder
- Returns:
- Whether the persistenceConfig field is set.
-
getPersistenceConfig
public PersistenceConfig getPersistenceConfig()
Optional. Persistence configuration parameters
.google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistenceConfig
in interfaceInstanceOrBuilder
- Returns:
- The persistenceConfig.
-
getPersistenceConfigOrBuilder
public PersistenceConfigOrBuilder getPersistenceConfigOrBuilder()
Optional. Persistence configuration parameters
.google.cloud.redis.v1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getPersistenceConfigOrBuilder
in interfaceInstanceOrBuilder
-
getSuspensionReasonsList
public List<Instance.SuspensionReason> getSuspensionReasonsList()
Optional. reasons that causes instance in "SUSPENDED" state.
repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSuspensionReasonsList
in interfaceInstanceOrBuilder
- Returns:
- A list containing the suspensionReasons.
-
getSuspensionReasonsCount
public int getSuspensionReasonsCount()
Optional. reasons that causes instance in "SUSPENDED" state.
repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSuspensionReasonsCount
in interfaceInstanceOrBuilder
- Returns:
- The count of suspensionReasons.
-
getSuspensionReasons
public Instance.SuspensionReason getSuspensionReasons(int index)
Optional. reasons that causes instance in "SUSPENDED" state.
repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSuspensionReasons
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The suspensionReasons at the given index.
-
getSuspensionReasonsValueList
public List<Integer> getSuspensionReasonsValueList()
Optional. reasons that causes instance in "SUSPENDED" state.
repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSuspensionReasonsValueList
in interfaceInstanceOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for suspensionReasons.
-
getSuspensionReasonsValue
public int getSuspensionReasonsValue(int index)
Optional. reasons that causes instance in "SUSPENDED" state.
repeated .google.cloud.redis.v1.Instance.SuspensionReason suspension_reasons = 38 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getSuspensionReasonsValue
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of suspensionReasons at the given index.
-
getMaintenanceVersion
public String getMaintenanceVersion()
Optional. The self service update maintenance version. The version is date based such as "20210712_00_00".
string maintenance_version = 39 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMaintenanceVersion
in interfaceInstanceOrBuilder
- Returns:
- The maintenanceVersion.
-
getMaintenanceVersionBytes
public com.google.protobuf.ByteString getMaintenanceVersionBytes()
Optional. The self service update maintenance version. The version is date based such as "20210712_00_00".
string maintenance_version = 39 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getMaintenanceVersionBytes
in interfaceInstanceOrBuilder
- Returns:
- The bytes for maintenanceVersion.
-
getAvailableMaintenanceVersionsList
public com.google.protobuf.ProtocolStringList getAvailableMaintenanceVersionsList()
Optional. The available maintenance versions that an instance could update to.
repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAvailableMaintenanceVersionsList
in interfaceInstanceOrBuilder
- Returns:
- A list containing the availableMaintenanceVersions.
-
getAvailableMaintenanceVersionsCount
public int getAvailableMaintenanceVersionsCount()
Optional. The available maintenance versions that an instance could update to.
repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAvailableMaintenanceVersionsCount
in interfaceInstanceOrBuilder
- Returns:
- The count of availableMaintenanceVersions.
-
getAvailableMaintenanceVersions
public String getAvailableMaintenanceVersions(int index)
Optional. The available maintenance versions that an instance could update to.
repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAvailableMaintenanceVersions
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The availableMaintenanceVersions at the given index.
-
getAvailableMaintenanceVersionsBytes
public com.google.protobuf.ByteString getAvailableMaintenanceVersionsBytes(int index)
Optional. The available maintenance versions that an instance could update to.
repeated string available_maintenance_versions = 40 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getAvailableMaintenanceVersionsBytes
in interfaceInstanceOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the availableMaintenanceVersions at the given index.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Instance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Instance parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Instance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Instance parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Instance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Instance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Instance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Instance.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Instance.Builder newBuilder()
-
newBuilder
public static Instance.Builder newBuilder(Instance prototype)
-
toBuilder
public Instance.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Instance.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Instance getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Instance> parser()
-
getParserForType
public com.google.protobuf.Parser<Instance> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Instance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-