* `displayName` * `labels` * `memorySizeGb` * `redisConfig` + *
* `displayName` * `labels` * `memorySizeGb` * `redisConfig` *
+ * `replica_count`
* @param instance Required. Update description. Only fields specified in update_mask are updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -1167,7 +1168,7 @@ public final UnaryCallable Sample code:
@@ -1200,7 +1201,7 @@ public final OperationFuture Sample code:
@@ -1233,7 +1234,7 @@ public final OperationFuture Sample code:
@@ -1258,7 +1259,7 @@ public final OperationFuture Sample code:
@@ -1283,7 +1284,7 @@ public final OperationFuture Sample code:
diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java
index 4bd2e253..40caea49 100644
--- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java
+++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1/package-info.java
@@ -15,7 +15,9 @@
*/
/**
- * The interfaces provided are listed below, along with usage samples.
+ * A client to Google Cloud Memorystore for Redis API
+ *
+ * The interfaces provided are listed below, along with usage samples.
*
* ======================= CloudRedisClient =======================
*
diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java
index fe918026..8ac7dede 100644
--- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java
+++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/CloudRedisClient.java
@@ -57,7 +57,7 @@
* `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
*
*
- * Note that location_id must be refering to a GCP `region`; for example:
+ * Note that location_id must be referring to a GCP `region`; for example:
*
* The creation is executed asynchronously and callers may check the returned operation to
* track its progress. Once the operation is completed the Redis instance will be fully
- * functional. Completed longrunning.Operation will contain the new instance object in the
+ * functional. The completed longrunning.Operation will contain the new instance object in the
* response field.
*
* The returned operation is automatically deleted after a few hours, so there is no need to
@@ -524,7 +524,7 @@ public final OperationFuture The creation is executed asynchronously and callers may check the returned operation to
* track its progress. Once the operation is completed the Redis instance will be fully
- * functional. Completed longrunning.Operation will contain the new instance object in the
+ * functional. The completed longrunning.Operation will contain the new instance object in the
* response field.
*
* The returned operation is automatically deleted after a few hours, so there is no need to
@@ -576,7 +576,7 @@ public final OperationFuture The creation is executed asynchronously and callers may check the returned operation to
* track its progress. Once the operation is completed the Redis instance will be fully
- * functional. Completed longrunning.Operation will contain the new instance object in the
+ * functional. The completed longrunning.Operation will contain the new instance object in the
* response field.
*
* The returned operation is automatically deleted after a few hours, so there is no need to
@@ -612,7 +612,7 @@ public final OperationFuture The creation is executed asynchronously and callers may check the returned operation to
* track its progress. Once the operation is completed the Redis instance will be fully
- * functional. Completed longrunning.Operation will contain the new instance object in the
+ * functional. The completed longrunning.Operation will contain the new instance object in the
* response field.
*
* The returned operation is automatically deleted after a few hours, so there is no need to
@@ -649,7 +649,7 @@ public final OperationFuture The creation is executed asynchronously and callers may check the returned operation to
* track its progress. Once the operation is completed the Redis instance will be fully
- * functional. Completed longrunning.Operation will contain the new instance object in the
+ * functional. The completed longrunning.Operation will contain the new instance object in the
* response field.
*
* The returned operation is automatically deleted after a few hours, so there is no need to
@@ -696,7 +696,8 @@ public final UnaryCallable * `displayName` * `labels` * `memorySizeGb` * `redisConfig`
+ * * `displayName` * `labels` * `memorySizeGb` * `redisConfig` *
+ * `replica_count`
* @param instance Required. Update description. Only fields specified in update_mask are updated.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
@@ -1164,7 +1165,7 @@ public final UnaryCallable Sample code:
@@ -1197,7 +1198,7 @@ public final OperationFuture Sample code:
@@ -1230,7 +1231,7 @@ public final OperationFuture Sample code:
@@ -1255,7 +1256,7 @@ public final OperationFuture Sample code:
@@ -1280,7 +1281,7 @@ public final OperationFuture Sample code:
diff --git a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java
index d8d969e5..cd7feb7b 100644
--- a/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java
+++ b/google-cloud-redis/src/main/java/com/google/cloud/redis/v1beta1/package-info.java
@@ -15,7 +15,9 @@
*/
/**
- * The interfaces provided are listed below, along with usage samples.
+ * A client to Google Cloud Memorystore for Redis API
+ *
+ * The interfaces provided are listed below, along with usage samples.
*
* ======================= CloudRedisClient =======================
*
@@ -34,7 +36,7 @@
* `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
* Note that location_id must be refering to a GCP `region`; for example:
+ * Note that location_id must be referring to a GCP `region`; for example:
*
*
*
*
- *
*
- * Initiates a failover of the master node to current replica node for a
+ * Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
*
*/
@@ -867,7 +868,7 @@ public void exportInstance(
*
*
*
- * Initiates a failover of the master node to current replica node for a
+ * Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
*
*/
@@ -1048,7 +1049,7 @@ public com.google.longrunning.Operation exportInstance(
*
*
*
- * Initiates a failover of the master node to current replica node for a
+ * Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
*
*/
@@ -1223,7 +1224,7 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
*
*
*
- * Initiates a failover of the master node to current replica node for a
+ * Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
*
*/
diff --git a/grpc-google-cloud-redis-v1beta1/pom.xml b/grpc-google-cloud-redis-v1beta1/pom.xml
index c6b8a169..d7f8aaa3 100644
--- a/grpc-google-cloud-redis-v1beta1/pom.xml
+++ b/grpc-google-cloud-redis-v1beta1/pom.xml
@@ -4,13 +4,13 @@
- * Initiates a failover of the master node to current replica node for a
+ * Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
*
*/
@@ -723,7 +724,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
* * Each location has a collection of Redis instances, named: `/instances/*`
* * As such, Redis instances are resources of the form:
* `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note that location_id must be refering to a GCP `region`; for example:
+ * Note that location_id must be referring to a GCP `region`; for example:
* * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
*
*/
@@ -784,7 +785,7 @@ public void getInstance(
* [default network](https://cloud.google.com/vpc/docs/vpc).
* The creation is executed asynchronously and callers may check the returned
* operation to track its progress. Once the operation is completed the Redis
- * instance will be fully functional. Completed longrunning.Operation will
+ * instance will be fully functional. The completed longrunning.Operation will
* contain the new instance object in the response field.
* The returned operation is automatically deleted after a few hours, so there
* is no need to call DeleteOperation.
@@ -879,7 +880,7 @@ public void exportInstance(
*
*
*
- * Initiates a failover of the master node to current replica node for a
+ * Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
*
*/
@@ -924,7 +925,7 @@ public void deleteInstance(
* * Each location has a collection of Redis instances, named: `/instances/*`
* * As such, Redis instances are resources of the form:
* `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note that location_id must be refering to a GCP `region`; for example:
+ * Note that location_id must be referring to a GCP `region`; for example:
* * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
*
*/
@@ -980,7 +981,7 @@ public com.google.cloud.redis.v1beta1.Instance getInstance(
* [default network](https://cloud.google.com/vpc/docs/vpc).
* The creation is executed asynchronously and callers may check the returned
* operation to track its progress. Once the operation is completed the Redis
- * instance will be fully functional. Completed longrunning.Operation will
+ * instance will be fully functional. The completed longrunning.Operation will
* contain the new instance object in the response field.
* The returned operation is automatically deleted after a few hours, so there
* is no need to call DeleteOperation.
@@ -1060,7 +1061,7 @@ public com.google.longrunning.Operation exportInstance(
*
*
*
- * Initiates a failover of the master node to current replica node for a
+ * Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
*
*/
@@ -1099,7 +1100,7 @@ public com.google.longrunning.Operation deleteInstance(
* * Each location has a collection of Redis instances, named: `/instances/*`
* * As such, Redis instances are resources of the form:
* `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note that location_id must be refering to a GCP `region`; for example:
+ * Note that location_id must be referring to a GCP `region`; for example:
* * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
*
*/
@@ -1156,7 +1157,7 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
* [default network](https://cloud.google.com/vpc/docs/vpc).
* The creation is executed asynchronously and callers may check the returned
* operation to track its progress. Once the operation is completed the Redis
- * instance will be fully functional. Completed longrunning.Operation will
+ * instance will be fully functional. The completed longrunning.Operation will
* contain the new instance object in the response field.
* The returned operation is automatically deleted after a few hours, so there
* is no need to call DeleteOperation.
@@ -1236,7 +1237,7 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption
*
*
*
- * Initiates a failover of the master node to current replica node for a
+ * Initiates a failover of the primary node to current replica node for a
* specific STANDARD tier Cloud Memorystore for Redis instance.
*
*/
diff --git a/pom.xml b/pom.xml
index bca44e7f..eb6e5270 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
* Instance failover will be protected with data loss control. More
* specifically, the failover will only be performed if the current
- * replication offset diff between master and replica is under a certain
+ * replication offset diff between primary and replica is under a certain
* threshold.
*
*
@@ -183,7 +183,7 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
*
* Instance failover will be protected with data loss control. More
* specifically, the failover will only be performed if the current
- * replication offset diff between master and replica is under a certain
+ * replication offset diff between primary and replica is under a certain
* threshold.
*
*
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java
index 0a3adc3b..daa3ba3c 100644
--- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java
+++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java
@@ -52,6 +52,9 @@ private Instance() {
authorizedNetwork_ = "";
persistenceIamIdentity_ = "";
connectMode_ = 0;
+ nodes_ = java.util.Collections.emptyList();
+ readEndpoint_ = "";
+ readReplicasMode_ = 0;
}
@java.lang.Override
@@ -235,6 +238,41 @@ private Instance(
connectMode_ = rawValue;
break;
}
+ case 248:
+ {
+ replicaCount_ = input.readInt32();
+ break;
+ }
+ case 258:
+ {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ nodes_ = new java.util.ArrayList
+ * Read replicas mode.
+ *
+ *
+ * Protobuf enum {@code google.cloud.redis.v1.Instance.ReadReplicasMode}
+ */
+ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * If not set, Memorystore Redis backend will pick the mode based on other fields in
+ * the request.
+ *
+ *
+ * READ_REPLICAS_MODE_UNSPECIFIED = 0;
+ */
+ READ_REPLICAS_MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * If disabled, read endpoint will not be provided and the instance cannot
+ * scale up or down the number of replicas.
+ *
+ *
+ * READ_REPLICAS_DISABLED = 1;
+ */
+ READ_REPLICAS_DISABLED(1),
+ /**
+ *
+ *
+ *
+ * If enabled, read endpoint will be provided and the instance can scale
+ * up and down the number of replicas.
+ *
+ *
+ * READ_REPLICAS_ENABLED = 2;
+ */
+ READ_REPLICAS_ENABLED(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * If not set, Memorystore Redis backend will pick the mode based on other fields in
+ * the request.
+ *
+ *
+ * READ_REPLICAS_MODE_UNSPECIFIED = 0;
+ */
+ public static final int READ_REPLICAS_MODE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * If disabled, read endpoint will not be provided and the instance cannot
+ * scale up or down the number of replicas.
+ *
+ *
+ * READ_REPLICAS_DISABLED = 1;
+ */
+ public static final int READ_REPLICAS_DISABLED_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * If enabled, read endpoint will be provided and the instance can scale
+ * up and down the number of replicas.
+ *
+ *
+ * READ_REPLICAS_ENABLED = 2;
+ */
+ public static final int READ_REPLICAS_ENABLED_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ReadReplicasMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ReadReplicasMode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return READ_REPLICAS_MODE_UNSPECIFIED;
+ case 1:
+ return READ_REPLICAS_DISABLED;
+ case 2:
+ return READ_REPLICAS_ENABLED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -1137,10 +1343,10 @@ public java.lang.String getLocationId() {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -1166,9 +1372,11 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -1191,9 +1399,11 @@ public java.lang.String getAlternativeLocationId() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -1225,6 +1435,7 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
* * `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];
@@ -1253,6 +1464,7 @@ public java.lang.String getRedisVersion() {
* * `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];
@@ -1278,10 +1490,14 @@ public com.google.protobuf.ByteString getRedisVersionBytes() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -1304,10 +1520,14 @@ public java.lang.String getReservedIpRange() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -1402,11 +1622,9 @@ public int getPort() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -1429,11 +1647,9 @@ public java.lang.String getCurrentLocationId() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -1960,33 +2176,248 @@ public com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode() {
return result == null ? com.google.cloud.redis.v1.Instance.ConnectMode.UNRECOGNIZED : result;
}
- private byte memoizedIsInitialized = -1;
-
+ public static final int REPLICA_COUNT_FIELD_NUMBER = 31;
+ private int replicaCount_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The replicaCount.
+ */
@java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ public int getReplicaCount() {
+ return replicaCount_;
+ }
- memoizedIsInitialized = 1;
- return true;
+ public static final int NODES_FIELD_NUMBER = 32;
+ private java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.redis.v1.NodeInfoOrBuilder>
+ getNodesOrBuilderList() {
+ return nodes_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getNodesCount() {
+ return nodes_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1.NodeInfo getNodes(int index) {
+ return nodes_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index) {
+ return nodes_.get(index);
}
+ public static final int READ_ENDPOINT_FIELD_NUMBER = 33;
+ private volatile java.lang.Object readEndpoint_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpoint.
+ */
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
- }
- com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
- output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
+ public java.lang.String getReadEndpoint() {
+ java.lang.Object ref = readEndpoint_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ readEndpoint_ = s;
+ return s;
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alternativeLocationId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alternativeLocationId_);
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The bytes for readEndpoint.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getReadEndpointBytes() {
+ java.lang.Object ref = readEndpoint_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ readEndpoint_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int READ_ENDPOINT_PORT_FIELD_NUMBER = 34;
+ private int readEndpointPort_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpointPort.
+ */
+ @java.lang.Override
+ public int getReadEndpointPort() {
+ return readEndpointPort_;
+ }
+
+ public static final int READ_REPLICAS_MODE_FIELD_NUMBER = 35;
+ private int readReplicasMode_;
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for readReplicasMode.
+ */
+ @java.lang.Override
+ public int getReadReplicasModeValue() {
+ return readReplicasMode_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The readReplicasMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1.Instance.ReadReplicasMode result =
+ com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_);
+ return result == null
+ ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alternativeLocationId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alternativeLocationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, redisVersion_);
@@ -2030,6 +2461,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
!= com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) {
output.writeEnum(22, connectMode_);
}
+ if (replicaCount_ != 0) {
+ output.writeInt32(31, replicaCount_);
+ }
+ for (int i = 0; i < nodes_.size(); i++) {
+ output.writeMessage(32, nodes_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpoint_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 33, readEndpoint_);
+ }
+ if (readEndpointPort_ != 0) {
+ output.writeInt32(34, readEndpointPort_);
+ }
+ if (readReplicasMode_
+ != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(35, readReplicasMode_);
+ }
unknownFields.writeTo(output);
}
@@ -2111,6 +2559,23 @@ public int getSerializedSize() {
!= com.google.cloud.redis.v1.Instance.ConnectMode.CONNECT_MODE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, connectMode_);
}
+ if (replicaCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(31, replicaCount_);
+ }
+ for (int i = 0; i < nodes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, nodes_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpoint_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, readEndpoint_);
+ }
+ if (readEndpointPort_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(34, readEndpointPort_);
+ }
+ if (readReplicasMode_
+ != com.google.cloud.redis.v1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, readReplicasMode_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -2148,6 +2613,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false;
if (!getPersistenceIamIdentity().equals(other.getPersistenceIamIdentity())) return false;
if (connectMode_ != other.connectMode_) return false;
+ if (getReplicaCount() != other.getReplicaCount()) return false;
+ if (!getNodesList().equals(other.getNodesList())) return false;
+ if (!getReadEndpoint().equals(other.getReadEndpoint())) return false;
+ if (getReadEndpointPort() != other.getReadEndpointPort()) return false;
+ if (readReplicasMode_ != other.readReplicasMode_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2203,6 +2673,18 @@ public int hashCode() {
hash = (53 * hash) + getPersistenceIamIdentity().hashCode();
hash = (37 * hash) + CONNECT_MODE_FIELD_NUMBER;
hash = (53 * hash) + connectMode_;
+ hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getReplicaCount();
+ if (getNodesCount() > 0) {
+ hash = (37 * hash) + NODES_FIELD_NUMBER;
+ hash = (53 * hash) + getNodesList().hashCode();
+ }
+ hash = (37 * hash) + READ_ENDPOINT_FIELD_NUMBER;
+ hash = (53 * hash) + getReadEndpoint().hashCode();
+ hash = (37 * hash) + READ_ENDPOINT_PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getReadEndpointPort();
+ hash = (37 * hash) + READ_REPLICAS_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + readReplicasMode_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -2365,7 +2847,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getNodesFieldBuilder();
+ }
}
@java.lang.Override
@@ -2411,6 +2895,20 @@ public Builder clear() {
connectMode_ = 0;
+ replicaCount_ = 0;
+
+ if (nodesBuilder_ == null) {
+ nodes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ nodesBuilder_.clear();
+ }
+ readEndpoint_ = "";
+
+ readEndpointPort_ = 0;
+
+ readReplicasMode_ = 0;
+
return this;
}
@@ -2463,6 +2961,19 @@ public com.google.cloud.redis.v1.Instance buildPartial() {
result.authorizedNetwork_ = authorizedNetwork_;
result.persistenceIamIdentity_ = persistenceIamIdentity_;
result.connectMode_ = connectMode_;
+ result.replicaCount_ = replicaCount_;
+ if (nodesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ nodes_ = java.util.Collections.unmodifiableList(nodes_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.nodes_ = nodes_;
+ } else {
+ result.nodes_ = nodesBuilder_.build();
+ }
+ result.readEndpoint_ = readEndpoint_;
+ result.readEndpointPort_ = readEndpointPort_;
+ result.readReplicasMode_ = readReplicasMode_;
onBuilt();
return result;
}
@@ -2576,6 +3087,46 @@ public Builder mergeFrom(com.google.cloud.redis.v1.Instance other) {
if (other.connectMode_ != 0) {
setConnectModeValue(other.getConnectModeValue());
}
+ if (other.getReplicaCount() != 0) {
+ setReplicaCount(other.getReplicaCount());
+ }
+ if (nodesBuilder_ == null) {
+ if (!other.nodes_.isEmpty()) {
+ if (nodes_.isEmpty()) {
+ nodes_ = other.nodes_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureNodesIsMutable();
+ nodes_.addAll(other.nodes_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.nodes_.isEmpty()) {
+ if (nodesBuilder_.isEmpty()) {
+ nodesBuilder_.dispose();
+ nodesBuilder_ = null;
+ nodes_ = other.nodes_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ nodesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getNodesFieldBuilder()
+ : null;
+ } else {
+ nodesBuilder_.addAllMessages(other.nodes_);
+ }
+ }
+ }
+ if (!other.getReadEndpoint().isEmpty()) {
+ readEndpoint_ = other.readEndpoint_;
+ onChanged();
+ }
+ if (other.getReadEndpointPort() != 0) {
+ setReadEndpointPort(other.getReadEndpointPort());
+ }
+ if (other.readReplicasMode_ != 0) {
+ setReadReplicasModeValue(other.getReadReplicasModeValue());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -3017,10 +3568,10 @@ public Builder putAllLabels(java.util.Map
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3043,10 +3594,10 @@ public java.lang.String getLocationId() {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3069,10 +3620,10 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3094,10 +3645,10 @@ public Builder setLocationId(java.lang.String value) {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3115,10 +3666,10 @@ public Builder clearLocationId() {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3142,9 +3693,11 @@ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3166,9 +3719,11 @@ public java.lang.String getAlternativeLocationId() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3190,9 +3745,11 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3213,9 +3770,11 @@ public Builder setAlternativeLocationId(java.lang.String value) {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3232,9 +3791,11 @@ public Builder clearAlternativeLocationId() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -3264,6 +3825,7 @@ public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString valu
* * `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];
@@ -3291,6 +3853,7 @@ public java.lang.String getRedisVersion() {
* * `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];
@@ -3318,6 +3881,7 @@ public com.google.protobuf.ByteString getRedisVersionBytes() {
* * `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];
@@ -3344,6 +3908,7 @@ public Builder setRedisVersion(java.lang.String value) {
* * `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];
@@ -3366,6 +3931,7 @@ public Builder clearRedisVersion() {
* * `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];
@@ -3389,10 +3955,14 @@ public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3414,10 +3984,14 @@ public java.lang.String getReservedIpRange() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3439,10 +4013,14 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3463,10 +4041,14 @@ public Builder setReservedIpRange(java.lang.String value) {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3483,10 +4065,14 @@ public Builder clearReservedIpRange() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3673,11 +4259,9 @@ public Builder clearPort() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -3699,11 +4283,9 @@ public java.lang.String getCurrentLocationId() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -3725,11 +4307,9 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -3750,11 +4330,9 @@ public Builder setCurrentLocationId(java.lang.String value) {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -3771,11 +4349,9 @@ public Builder clearCurrentLocationId() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -4976,6 +5552,725 @@ public Builder clearConnectMode() {
return this;
}
+ private int replicaCount_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The replicaCount.
+ */
+ @java.lang.Override
+ public int getReplicaCount() {
+ return replicaCount_;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The replicaCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReplicaCount(int value) {
+
+ replicaCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReplicaCount() {
+
+ replicaCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getNodesCount() {
+ if (nodesBuilder_ == null) {
+ return nodes_.size();
+ } else {
+ return nodesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1.NodeInfo getNodes(int index) {
+ if (nodesBuilder_ == null) {
+ return nodes_.get(index);
+ } else {
+ return nodesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setNodes(int index, com.google.cloud.redis.v1.NodeInfo value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.set(index, value);
+ onChanged();
+ } else {
+ nodesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setNodes(int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addNodes(com.google.cloud.redis.v1.NodeInfo value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.add(value);
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addNodes(int index, com.google.cloud.redis.v1.NodeInfo value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.add(index, value);
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addNodes(com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addNodes(int index, com.google.cloud.redis.v1.NodeInfo.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllNodes(
+ java.lang.Iterable extends com.google.cloud.redis.v1.NodeInfo> values) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_);
+ onChanged();
+ } else {
+ nodesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearNodes() {
+ if (nodesBuilder_ == null) {
+ nodes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ nodesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeNodes(int index) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.remove(index);
+ onChanged();
+ } else {
+ nodesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1.NodeInfo.Builder getNodesBuilder(int index) {
+ return getNodesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index) {
+ if (nodesBuilder_ == null) {
+ return nodes_.get(index);
+ } else {
+ return nodesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.cloud.redis.v1.NodeInfoOrBuilder>
+ getNodesOrBuilderList() {
+ if (nodesBuilder_ != null) {
+ return nodesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(nodes_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder() {
+ return getNodesFieldBuilder()
+ .addBuilder(com.google.cloud.redis.v1.NodeInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1.NodeInfo.Builder addNodesBuilder(int index) {
+ return getNodesFieldBuilder()
+ .addBuilder(index, com.google.cloud.redis.v1.NodeInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * 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];
+ *
+ * @return The readEndpoint.
+ */
+ public java.lang.String getReadEndpoint() {
+ java.lang.Object ref = readEndpoint_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ readEndpoint_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The bytes for readEndpoint.
+ */
+ public com.google.protobuf.ByteString getReadEndpointBytes() {
+ java.lang.Object ref = readEndpoint_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ readEndpoint_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The readEndpoint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadEndpoint(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ readEndpoint_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReadEndpoint() {
+
+ readEndpoint_ = getDefaultInstance().getReadEndpoint();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The bytes for readEndpoint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadEndpointBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ readEndpoint_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int readEndpointPort_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpointPort.
+ */
+ @java.lang.Override
+ public int getReadEndpointPort() {
+ return readEndpointPort_;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The readEndpointPort to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadEndpointPort(int value) {
+
+ readEndpointPort_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReadEndpointPort() {
+
+ readEndpointPort_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int readReplicasMode_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for readReplicasMode.
+ */
+ @java.lang.Override
+ public int getReadReplicasModeValue() {
+ return readReplicasMode_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for readReplicasMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadReplicasModeValue(int value) {
+
+ readReplicasMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The readReplicasMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1.Instance.ReadReplicasMode result =
+ com.google.cloud.redis.v1.Instance.ReadReplicasMode.valueOf(readReplicasMode_);
+ return result == null
+ ? com.google.cloud.redis.v1.Instance.ReadReplicasMode.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The readReplicasMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadReplicasMode(com.google.cloud.redis.v1.Instance.ReadReplicasMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ readReplicasMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReadReplicasMode() {
+
+ readReplicasMode_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java
index e3518db1..f6906172 100644
--- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java
+++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/InstanceOrBuilder.java
@@ -146,10 +146,10 @@ public interface InstanceOrBuilder
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -162,10 +162,10 @@ public interface InstanceOrBuilder
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -178,9 +178,11 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -192,9 +194,11 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1.Instance.location_id].
+ * 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];
@@ -213,6 +217,7 @@ public interface InstanceOrBuilder
* * `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];
@@ -230,6 +235,7 @@ public interface InstanceOrBuilder
* * `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];
@@ -242,10 +248,14 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -257,10 +267,14 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -313,11 +327,9 @@ public interface InstanceOrBuilder
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -329,11 +341,9 @@ public interface InstanceOrBuilder
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -694,4 +704,154 @@ public interface InstanceOrBuilder
* @return The connectMode.
*/
com.google.cloud.redis.v1.Instance.ConnectMode getConnectMode();
+
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The replicaCount.
+ */
+ int getReplicaCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.redis.v1.NodeInfo getNodes(int index);
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getNodesCount();
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.redis.v1.NodeInfoOrBuilder> getNodesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.redis.v1.NodeInfoOrBuilder getNodesOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpoint.
+ */
+ java.lang.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];
+ *
+ * @return The bytes for readEndpoint.
+ */
+ com.google.protobuf.ByteString getReadEndpointBytes();
+
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpointPort.
+ */
+ int getReadEndpointPort();
+
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for readReplicasMode.
+ */
+ int getReadReplicasModeValue();
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The readReplicasMode.
+ */
+ com.google.cloud.redis.v1.Instance.ReadReplicasMode getReadReplicasMode();
}
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java
index 37b7d45a..d827c092 100644
--- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java
+++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java
@@ -151,11 +151,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -172,11 +173,12 @@ public java.util.Listrepeated .google.cloud.redis.v1.Instance instances = 1;
@@ -194,11 +196,12 @@ public java.util.Listrepeated .google.cloud.redis.v1.Instance instances = 1;
@@ -215,11 +218,12 @@ public int getInstancesCount() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -236,11 +240,12 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -794,11 +799,12 @@ private void ensureInstancesIsMutable() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -818,11 +824,12 @@ public java.util.Listrepeated .google.cloud.redis.v1.Instance instances = 1;
@@ -842,11 +849,12 @@ public int getInstancesCount() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -866,11 +874,12 @@ public com.google.cloud.redis.v1.Instance getInstances(int index) {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -896,11 +905,12 @@ public Builder setInstances(int index, com.google.cloud.redis.v1.Instance value)
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -924,11 +934,12 @@ public Builder setInstances(
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -954,11 +965,12 @@ public Builder addInstances(com.google.cloud.redis.v1.Instance value) {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -984,11 +996,12 @@ public Builder addInstances(int index, com.google.cloud.redis.v1.Instance value)
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1011,11 +1024,12 @@ public Builder addInstances(com.google.cloud.redis.v1.Instance.Builder builderFo
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1039,11 +1053,12 @@ public Builder addInstances(
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1067,11 +1082,12 @@ public Builder addAllInstances(
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1094,11 +1110,12 @@ public Builder clearInstances() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1121,11 +1138,12 @@ public Builder removeInstances(int index) {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1141,11 +1159,12 @@ public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder(int index)
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1165,11 +1184,12 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int ind
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1190,11 +1210,12 @@ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(int ind
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1211,11 +1232,12 @@ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -1232,11 +1254,12 @@ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(int index)
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java
index 682cc5e3..ed73fccc 100644
--- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java
+++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponseOrBuilder.java
@@ -31,11 +31,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -49,11 +50,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -67,11 +69,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -85,11 +88,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
@@ -103,11 +107,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1.Instance instances = 1;
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java
new file mode 100644
index 00000000..a366d5d4
--- /dev/null
+++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/NodeInfo.java
@@ -0,0 +1,810 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ *
+ *
+ *
+ * Node specific properties.
+ *
+ *
+ * Protobuf type {@code google.cloud.redis.v1.NodeInfo}
+ */
+public final class NodeInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.NodeInfo)
+ NodeInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NodeInfo.newBuilder() to construct.
+ private NodeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private NodeInfo() {
+ id_ = "";
+ zone_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new NodeInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private NodeInfo(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ id_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ zone_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+ .internal_static_google_cloud_redis_v1_NodeInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.redis.v1.CloudRedisServiceV1Proto
+ .internal_static_google_cloud_redis_v1_NodeInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.redis.v1.NodeInfo.class,
+ com.google.cloud.redis.v1.NodeInfo.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object id_;
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object zone_;
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The zone.
+ */
+ @java.lang.Override
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ zone_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for zone.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.redis.v1.NodeInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1.NodeInfo other = (com.google.cloud.redis.v1.NodeInfo) obj;
+
+ if (!getId().equals(other.getId())) return false;
+ if (!getZone().equals(other.getZone())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.redis.v1.NodeInfo prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Node specific properties.
+ *
+ *
+ * Protobuf type {@code google.cloud.redis.v1.NodeInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object zone_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The zone.
+ */
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ zone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for zone.
+ */
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ zone_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearZone() {
+
+ zone_ = getDefaultInstance().getZone();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ zone_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.NodeInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.NodeInfo)
+ private static final com.google.cloud.redis.v1.NodeInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.NodeInfo();
+ }
+
+ public static com.google.cloud.redis.v1.NodeInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString getIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The zone.
+ */
+ java.lang.String getZone();
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for zone.
+ */
+ com.google.protobuf.ByteString getZoneBytes();
+}
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java
index 351c4026..cbebe787 100644
--- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java
+++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java
@@ -145,6 +145,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -167,6 +168,7 @@ public boolean hasUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -189,6 +191,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -625,6 +628,7 @@ public Builder mergeFrom(
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -646,6 +650,7 @@ public boolean hasUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -673,6 +678,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -702,6 +708,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -728,6 +735,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -759,6 +767,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -786,6 +795,7 @@ public Builder clearUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -807,6 +817,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -832,6 +843,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java
index c4496b01..54d6c324 100644
--- a/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java
+++ b/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequestOrBuilder.java
@@ -34,6 +34,7 @@ public interface UpdateInstanceRequestOrBuilder
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -53,6 +54,7 @@ public interface UpdateInstanceRequestOrBuilder
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -72,6 +74,7 @@ public interface UpdateInstanceRequestOrBuilder
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto b/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
index a45e9c03..c95f6aa2 100644
--- a/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
+++ b/proto-google-cloud-redis-v1/src/main/proto/google/cloud/redis/v1/cloud_redis.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -165,7 +165,7 @@ service CloudRedis {
};
}
- // Initiates a failover of the master node to current replica node for a
+ // Initiates a failover of the primary node to current replica node for a
// specific STANDARD tier Cloud Memorystore for Redis instance.
rpc FailoverInstance(FailoverInstanceRequest) returns (google.longrunning.Operation) {
option (google.api.http) = {
@@ -193,6 +193,15 @@ service CloudRedis {
}
}
+// Node specific properties.
+message NodeInfo {
+ // Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Location of the node.
+ string zone = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
// A Google Cloud Redis instance.
message Instance {
option (google.api.resource) = {
@@ -258,6 +267,21 @@ message Instance {
PRIVATE_SERVICE_ACCESS = 2;
}
+ // Read replicas mode.
+ enum ReadReplicasMode {
+ // If not set, Memorystore Redis backend will pick the mode based on other fields in
+ // the request.
+ READ_REPLICAS_MODE_UNSPECIFIED = 0;
+
+ // If disabled, read endpoint will not be provided and the instance cannot
+ // scale up or down the number of replicas.
+ READ_REPLICAS_DISABLED = 1;
+
+ // If enabled, read endpoint will be provided and the instance can scale
+ // up and down the number of replicas.
+ READ_REPLICAS_ENABLED = 2;
+ }
+
// 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}`
@@ -276,15 +300,17 @@ message Instance {
map
- * Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
+ * Request for
+ * [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.CreateInstanceRequest}
@@ -493,7 +494,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Request for [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
+ * Request for
+ * [CreateInstance][google.cloud.redis.v1beta1.CloudRedis.CreateInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.CreateInstanceRequest}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java
index ef258792..5c282b49 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/DeleteInstanceRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
+ * Request for
+ * [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.DeleteInstanceRequest}
@@ -331,7 +332,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Request for [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
+ * Request for
+ * [DeleteInstance][google.cloud.redis.v1beta1.CloudRedis.DeleteInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.DeleteInstanceRequest}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java
index d400c68c..86e32a42 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/FailoverInstanceRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
+ * Request for
+ * [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.FailoverInstanceRequest}
@@ -146,7 +147,7 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
*
* Instance failover will be protected with data loss control. More
* specifically, the failover will only be performed if the current
- * replication offset diff between master and replica is under a certain
+ * replication offset diff between primary and replica is under a certain
* threshold.
*
*
@@ -183,7 +184,7 @@ public enum DataProtectionMode implements com.google.protobuf.ProtocolMessageEnu
*
* Instance failover will be protected with data loss control. More
* specifically, the failover will only be performed if the current
- * replication offset diff between master and replica is under a certain
+ * replication offset diff between primary and replica is under a certain
* threshold.
*
*
@@ -571,7 +572,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Request for [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
+ * Request for
+ * [Failover][google.cloud.redis.v1beta1.CloudRedis.FailoverInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.FailoverInstanceRequest}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java
index de273196..dda69851 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/Instance.java
@@ -52,6 +52,9 @@ private Instance() {
authorizedNetwork_ = "";
persistenceIamIdentity_ = "";
connectMode_ = 0;
+ nodes_ = java.util.Collections.emptyList();
+ readEndpoint_ = "";
+ readReplicasMode_ = 0;
}
@java.lang.Override
@@ -235,6 +238,41 @@ private Instance(
connectMode_ = rawValue;
break;
}
+ case 248:
+ {
+ replicaCount_ = input.readInt32();
+ break;
+ }
+ case 258:
+ {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ nodes_ = new java.util.ArrayList
- * Connect via directly peering with memorystore redis hosted service.
+ * Connect via direct peering to the Memorystore for Redis hosted service.
*
*
* DIRECT_PEERING = 1;
@@ -766,8 +807,9 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Connect with google via private service access and share connection
- * across google managed services.
+ * Connect your Memorystore for Redis instance using Private Service
+ * Access. Private services access provides an IP address range for multiple
+ * Google Cloud services, including Memorystore.
*
*
* PRIVATE_SERVICE_ACCESS = 2;
@@ -790,7 +832,7 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Connect via directly peering with memorystore redis hosted service.
+ * Connect via direct peering to the Memorystore for Redis hosted service.
*
*
* DIRECT_PEERING = 1;
@@ -800,8 +842,9 @@ public enum ConnectMode implements com.google.protobuf.ProtocolMessageEnum {
*
*
*
- * Connect with google via private service access and share connection
- * across google managed services.
+ * Connect your Memorystore for Redis instance using Private Service
+ * Access. Private services access provides an IP address range for multiple
+ * Google Cloud services, including Memorystore.
*
*
* PRIVATE_SERVICE_ACCESS = 2;
@@ -891,6 +934,171 @@ private ConnectMode(int value) {
// @@protoc_insertion_point(enum_scope:google.cloud.redis.v1beta1.Instance.ConnectMode)
}
+ /**
+ *
+ *
+ *
+ * Read replicas mode.
+ *
+ *
+ * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.ReadReplicasMode}
+ */
+ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ *
+ *
+ *
+ * If not set, Memorystore for Redis backend will pick the mode based on
+ * other fields in the request.
+ *
+ *
+ * READ_REPLICAS_MODE_UNSPECIFIED = 0;
+ */
+ READ_REPLICAS_MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ *
+ * If disabled, read endpoint will not be provided and the instance cannot
+ * scale up or down the number of replicas.
+ *
+ *
+ * READ_REPLICAS_DISABLED = 1;
+ */
+ READ_REPLICAS_DISABLED(1),
+ /**
+ *
+ *
+ *
+ * If enabled, read endpoint will be provided and the instance can scale
+ * up and down the number of replicas.
+ *
+ *
+ * READ_REPLICAS_ENABLED = 2;
+ */
+ READ_REPLICAS_ENABLED(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ *
+ * If not set, Memorystore for Redis backend will pick the mode based on
+ * other fields in the request.
+ *
+ *
+ * READ_REPLICAS_MODE_UNSPECIFIED = 0;
+ */
+ public static final int READ_REPLICAS_MODE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ *
+ * If disabled, read endpoint will not be provided and the instance cannot
+ * scale up or down the number of replicas.
+ *
+ *
+ * READ_REPLICAS_DISABLED = 1;
+ */
+ public static final int READ_REPLICAS_DISABLED_VALUE = 1;
+ /**
+ *
+ *
+ *
+ * If enabled, read endpoint will be provided and the instance can scale
+ * up and down the number of replicas.
+ *
+ *
+ * READ_REPLICAS_ENABLED = 2;
+ */
+ public static final int READ_REPLICAS_ENABLED_VALUE = 2;
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static ReadReplicasMode valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static ReadReplicasMode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return READ_REPLICAS_MODE_UNSPECIFIED;
+ case 1:
+ return READ_REPLICAS_DISABLED;
+ case 2:
+ return READ_REPLICAS_ENABLED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMapstring name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -933,8 +1143,10 @@ public java.lang.String getName() {
* 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ * should be provisioned in. Refer to
+ * [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ * fields for more details.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -1108,10 +1320,10 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -1135,10 +1347,10 @@ public java.lang.String getLocationId() {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -1164,9 +1376,11 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -1189,9 +1403,11 @@ public java.lang.String getAlternativeLocationId() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -1223,6 +1439,7 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
* * `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];
@@ -1251,6 +1468,7 @@ public java.lang.String getRedisVersion() {
* * `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];
@@ -1276,10 +1494,14 @@ public com.google.protobuf.ByteString getRedisVersionBytes() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -1302,10 +1524,14 @@ public java.lang.String getReservedIpRange() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -1332,7 +1558,7 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
*
*
* Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1356,7 +1582,7 @@ public java.lang.String getHost() {
*
*
* Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -1400,11 +1626,9 @@ public int getPort() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -1427,11 +1651,9 @@ public java.lang.String getCurrentLocationId() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -1924,9 +2146,8 @@ public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() {
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -1943,9 +2164,8 @@ public int getConnectModeValue() {
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -1964,33 +2184,248 @@ public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() {
: result;
}
- private byte memoizedIsInitialized = -1;
-
+ public static final int REPLICA_COUNT_FIELD_NUMBER = 31;
+ private int replicaCount_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The replicaCount.
+ */
@java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
+ public int getReplicaCount() {
+ return replicaCount_;
+ }
- memoizedIsInitialized = 1;
- return true;
+ public static final int NODES_FIELD_NUMBER = 32;
+ private java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>
+ getNodesOrBuilderList() {
+ return nodes_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public int getNodesCount() {
+ return nodes_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) {
+ return nodes_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index) {
+ return nodes_.get(index);
}
+ public static final int READ_ENDPOINT_FIELD_NUMBER = 33;
+ private volatile java.lang.Object readEndpoint_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpoint.
+ */
@java.lang.Override
- public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
- }
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
- }
- com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
- output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
+ public java.lang.String getReadEndpoint() {
+ java.lang.Object ref = readEndpoint_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ readEndpoint_ = s;
+ return s;
}
- if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alternativeLocationId_)) {
- com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alternativeLocationId_);
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The bytes for readEndpoint.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getReadEndpointBytes() {
+ java.lang.Object ref = readEndpoint_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ readEndpoint_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int READ_ENDPOINT_PORT_FIELD_NUMBER = 34;
+ private int readEndpointPort_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpointPort.
+ */
+ @java.lang.Override
+ public int getReadEndpointPort() {
+ return readEndpointPort_;
+ }
+
+ public static final int READ_REPLICAS_MODE_FIELD_NUMBER = 35;
+ private int readReplicasMode_;
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for readReplicasMode.
+ */
+ @java.lang.Override
+ public int getReadReplicasModeValue() {
+ return readReplicasMode_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The readReplicasMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result =
+ com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_);
+ return result == null
+ ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED
+ : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
+ }
+ com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(
+ output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 3);
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(locationId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(alternativeLocationId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alternativeLocationId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redisVersion_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, redisVersion_);
@@ -2035,6 +2470,23 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(22, connectMode_);
}
+ if (replicaCount_ != 0) {
+ output.writeInt32(31, replicaCount_);
+ }
+ for (int i = 0; i < nodes_.size(); i++) {
+ output.writeMessage(32, nodes_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpoint_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 33, readEndpoint_);
+ }
+ if (readEndpointPort_ != 0) {
+ output.writeInt32(34, readEndpointPort_);
+ }
+ if (readReplicasMode_
+ != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(35, readReplicasMode_);
+ }
unknownFields.writeTo(output);
}
@@ -2117,6 +2569,23 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, connectMode_);
}
+ if (replicaCount_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(31, replicaCount_);
+ }
+ for (int i = 0; i < nodes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(32, nodes_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(readEndpoint_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(33, readEndpoint_);
+ }
+ if (readEndpointPort_ != 0) {
+ size += com.google.protobuf.CodedOutputStream.computeInt32Size(34, readEndpointPort_);
+ }
+ if (readReplicasMode_
+ != com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.READ_REPLICAS_MODE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, readReplicasMode_);
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -2154,6 +2623,11 @@ public boolean equals(final java.lang.Object obj) {
if (!getAuthorizedNetwork().equals(other.getAuthorizedNetwork())) return false;
if (!getPersistenceIamIdentity().equals(other.getPersistenceIamIdentity())) return false;
if (connectMode_ != other.connectMode_) return false;
+ if (getReplicaCount() != other.getReplicaCount()) return false;
+ if (!getNodesList().equals(other.getNodesList())) return false;
+ if (!getReadEndpoint().equals(other.getReadEndpoint())) return false;
+ if (getReadEndpointPort() != other.getReadEndpointPort()) return false;
+ if (readReplicasMode_ != other.readReplicasMode_) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2209,6 +2683,18 @@ public int hashCode() {
hash = (53 * hash) + getPersistenceIamIdentity().hashCode();
hash = (37 * hash) + CONNECT_MODE_FIELD_NUMBER;
hash = (53 * hash) + connectMode_;
+ hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + getReplicaCount();
+ if (getNodesCount() > 0) {
+ hash = (37 * hash) + NODES_FIELD_NUMBER;
+ hash = (53 * hash) + getNodesList().hashCode();
+ }
+ hash = (37 * hash) + READ_ENDPOINT_FIELD_NUMBER;
+ hash = (53 * hash) + getReadEndpoint().hashCode();
+ hash = (37 * hash) + READ_ENDPOINT_PORT_FIELD_NUMBER;
+ hash = (53 * hash) + getReadEndpointPort();
+ hash = (37 * hash) + READ_REPLICAS_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + readReplicasMode_;
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -2372,7 +2858,9 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
}
private void maybeForceBuilderInitialization() {
- if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getNodesFieldBuilder();
+ }
}
@java.lang.Override
@@ -2418,6 +2906,20 @@ public Builder clear() {
connectMode_ = 0;
+ replicaCount_ = 0;
+
+ if (nodesBuilder_ == null) {
+ nodes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ nodesBuilder_.clear();
+ }
+ readEndpoint_ = "";
+
+ readEndpointPort_ = 0;
+
+ readReplicasMode_ = 0;
+
return this;
}
@@ -2471,6 +2973,19 @@ public com.google.cloud.redis.v1beta1.Instance buildPartial() {
result.authorizedNetwork_ = authorizedNetwork_;
result.persistenceIamIdentity_ = persistenceIamIdentity_;
result.connectMode_ = connectMode_;
+ result.replicaCount_ = replicaCount_;
+ if (nodesBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ nodes_ = java.util.Collections.unmodifiableList(nodes_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.nodes_ = nodes_;
+ } else {
+ result.nodes_ = nodesBuilder_.build();
+ }
+ result.readEndpoint_ = readEndpoint_;
+ result.readEndpointPort_ = readEndpointPort_;
+ result.readReplicasMode_ = readReplicasMode_;
onBuilt();
return result;
}
@@ -2584,6 +3099,46 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) {
if (other.connectMode_ != 0) {
setConnectModeValue(other.getConnectModeValue());
}
+ if (other.getReplicaCount() != 0) {
+ setReplicaCount(other.getReplicaCount());
+ }
+ if (nodesBuilder_ == null) {
+ if (!other.nodes_.isEmpty()) {
+ if (nodes_.isEmpty()) {
+ nodes_ = other.nodes_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureNodesIsMutable();
+ nodes_.addAll(other.nodes_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.nodes_.isEmpty()) {
+ if (nodesBuilder_.isEmpty()) {
+ nodesBuilder_.dispose();
+ nodesBuilder_ = null;
+ nodes_ = other.nodes_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ nodesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getNodesFieldBuilder()
+ : null;
+ } else {
+ nodesBuilder_.addAllMessages(other.nodes_);
+ }
+ }
+ }
+ if (!other.getReadEndpoint().isEmpty()) {
+ readEndpoint_ = other.readEndpoint_;
+ onChanged();
+ }
+ if (other.getReadEndpointPort() != 0) {
+ setReadEndpointPort(other.getReadEndpointPort());
+ }
+ if (other.readReplicasMode_ != 0) {
+ setReadReplicasModeValue(other.getReadReplicasModeValue());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -2626,8 +3181,10 @@ public Builder mergeFrom(
* 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ * should be provisioned in. Refer to
+ * [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ * fields for more details.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -2655,8 +3212,10 @@ public java.lang.String getName() {
* 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ * should be provisioned in. Refer to
+ * [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ * fields for more details.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -2684,8 +3243,10 @@ public com.google.protobuf.ByteString getNameBytes() {
* 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ * should be provisioned in. Refer to
+ * [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ * fields for more details.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -2712,8 +3273,10 @@ public Builder setName(java.lang.String value) {
* 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ * should be provisioned in. Refer to
+ * [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ * fields for more details.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -2736,8 +3299,10 @@ public Builder clearName() {
* 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ * should be provisioned in. Refer to
+ * [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ * fields for more details.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -3025,10 +3590,10 @@ public Builder putAllLabels(java.util.Map
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3051,10 +3616,10 @@ public java.lang.String getLocationId() {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3077,10 +3642,10 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3102,10 +3667,10 @@ public Builder setLocationId(java.lang.String value) {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3123,10 +3688,10 @@ public Builder clearLocationId() {
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3150,9 +3715,11 @@ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3174,9 +3741,11 @@ public java.lang.String getAlternativeLocationId() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3198,9 +3767,11 @@ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3221,9 +3792,11 @@ public Builder setAlternativeLocationId(java.lang.String value) {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3240,9 +3813,11 @@ public Builder clearAlternativeLocationId() {
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -3272,6 +3847,7 @@ public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString valu
* * `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];
@@ -3299,6 +3875,7 @@ public java.lang.String getRedisVersion() {
* * `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];
@@ -3326,6 +3903,7 @@ public com.google.protobuf.ByteString getRedisVersionBytes() {
* * `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];
@@ -3352,6 +3930,7 @@ public Builder setRedisVersion(java.lang.String value) {
* * `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];
@@ -3374,6 +3953,7 @@ public Builder clearRedisVersion() {
* * `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];
@@ -3397,10 +3977,14 @@ public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3422,10 +4006,14 @@ public java.lang.String getReservedIpRange() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3447,10 +4035,14 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3471,10 +4063,14 @@ public Builder setReservedIpRange(java.lang.String value) {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3491,10 +4087,14 @@ public Builder clearReservedIpRange() {
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -3519,7 +4119,7 @@ public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) {
*
*
* Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3542,7 +4142,7 @@ public java.lang.String getHost() {
*
*
* Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3565,7 +4165,7 @@ 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.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3587,7 +4187,7 @@ public Builder setHost(java.lang.String value) {
*
*
* Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3605,7 +4205,7 @@ public Builder clearHost() {
*
*
* Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -3681,11 +4281,9 @@ public Builder clearPort() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -3707,11 +4305,9 @@ public java.lang.String getCurrentLocationId() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -3733,11 +4329,9 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -3758,11 +4352,9 @@ public Builder setCurrentLocationId(java.lang.String value) {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -3779,11 +4371,9 @@ public Builder clearCurrentLocationId() {
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -4883,9 +5473,8 @@ public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString val
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -4902,9 +5491,8 @@ public int getConnectModeValue() {
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -4924,9 +5512,8 @@ public Builder setConnectModeValue(int value) {
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -4948,9 +5535,8 @@ public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() {
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -4973,9 +5559,8 @@ public Builder setConnectMode(com.google.cloud.redis.v1beta1.Instance.ConnectMod
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -4991,6 +5576,728 @@ public Builder clearConnectMode() {
return this;
}
+ private int replicaCount_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The replicaCount.
+ */
+ @java.lang.Override
+ public int getReplicaCount() {
+ return replicaCount_;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The replicaCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReplicaCount(int value) {
+
+ replicaCount_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReplicaCount() {
+
+ replicaCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public int getNodesCount() {
+ if (nodesBuilder_ == null) {
+ return nodes_.size();
+ } else {
+ return nodesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) {
+ if (nodesBuilder_ == null) {
+ return nodes_.get(index);
+ } else {
+ return nodesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setNodes(int index, com.google.cloud.redis.v1beta1.NodeInfo value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.set(index, value);
+ onChanged();
+ } else {
+ nodesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setNodes(
+ int index, com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.add(value);
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addNodes(int index, com.google.cloud.redis.v1beta1.NodeInfo value) {
+ if (nodesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureNodesIsMutable();
+ nodes_.add(index, value);
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addNodes(com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addNodes(
+ int index, com.google.cloud.redis.v1beta1.NodeInfo.Builder builderForValue) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ nodesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder addAllNodes(
+ java.lang.Iterable extends com.google.cloud.redis.v1beta1.NodeInfo> values) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, nodes_);
+ onChanged();
+ } else {
+ nodesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearNodes() {
+ if (nodesBuilder_ == null) {
+ nodes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ nodesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder removeNodes(int index) {
+ if (nodesBuilder_ == null) {
+ ensureNodesIsMutable();
+ nodes_.remove(index);
+ onChanged();
+ } else {
+ nodesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.NodeInfo.Builder getNodesBuilder(int index) {
+ return getNodesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index) {
+ if (nodesBuilder_ == null) {
+ return nodes_.get(index);
+ } else {
+ return nodesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List extends com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>
+ getNodesOrBuilderList() {
+ if (nodesBuilder_ != null) {
+ return nodesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(nodes_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder() {
+ return getNodesFieldBuilder()
+ .addBuilder(com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.NodeInfo.Builder addNodesBuilder(int index) {
+ return getNodesFieldBuilder()
+ .addBuilder(index, com.google.cloud.redis.v1beta1.NodeInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public java.util.List
+ * 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];
+ *
+ * @return The readEndpoint.
+ */
+ public java.lang.String getReadEndpoint() {
+ java.lang.Object ref = readEndpoint_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ readEndpoint_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The bytes for readEndpoint.
+ */
+ public com.google.protobuf.ByteString getReadEndpointBytes() {
+ java.lang.Object ref = readEndpoint_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ readEndpoint_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The readEndpoint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadEndpoint(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ readEndpoint_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReadEndpoint() {
+
+ readEndpoint_ = getDefaultInstance().getReadEndpoint();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The bytes for readEndpoint to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadEndpointBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ readEndpoint_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int readEndpointPort_;
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpointPort.
+ */
+ @java.lang.Override
+ public int getReadEndpointPort() {
+ return readEndpointPort_;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The readEndpointPort to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadEndpointPort(int value) {
+
+ readEndpointPort_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReadEndpointPort() {
+
+ readEndpointPort_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int readReplicasMode_ = 0;
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for readReplicasMode.
+ */
+ @java.lang.Override
+ public int getReadReplicasModeValue() {
+ return readReplicasMode_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The enum numeric value on the wire for readReplicasMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadReplicasModeValue(int value) {
+
+ readReplicasMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The readReplicasMode.
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode result =
+ com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.valueOf(readReplicasMode_);
+ return result == null
+ ? com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode.UNRECOGNIZED
+ : result;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @param value The readReplicasMode to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReadReplicasMode(
+ com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ readReplicasMode_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReadReplicasMode() {
+
+ readReplicasMode_ = 0;
+ onChanged();
+ return this;
+ }
+
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java
index cfbfacc4..d9d20790 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceOrBuilder.java
@@ -33,8 +33,10 @@ public interface InstanceOrBuilder
* 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ * should be provisioned in. Refer to
+ * [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ * fields for more details.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -52,8 +54,10 @@ public interface InstanceOrBuilder
* 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ * should be provisioned in. Refer to
+ * [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ * fields for more details.
*
*
* string name = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -146,10 +150,10 @@ public interface InstanceOrBuilder
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -162,10 +166,10 @@ public interface InstanceOrBuilder
*
*
* Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone for the instance. For STANDARD_HA tier,
- * instances will be created across two zones for protection against zonal
- * failures. If [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] is also provided, it must be
- * different from [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -178,9 +182,11 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -192,9 +198,11 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. Only applicable to STANDARD_HA tier which protects the instance
- * against zonal failures by provisioning it across two zones. If provided, it
- * must be a different zone from the one provided in [location_id][google.cloud.redis.v1beta1.Instance.location_id].
+ * 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];
@@ -213,6 +221,7 @@ public interface InstanceOrBuilder
* * `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];
@@ -230,6 +239,7 @@ public interface InstanceOrBuilder
* * `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];
@@ -242,10 +252,14 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -257,10 +271,14 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. The CIDR range of internal addresses that are reserved for this
- * instance. If not provided, the service will choose an unused /29 block,
- * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique
- * and non-overlapping with existing subnets in an authorized network.
+ * 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];
@@ -274,7 +292,7 @@ public interface InstanceOrBuilder
*
*
* Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -287,7 +305,7 @@ public interface InstanceOrBuilder
*
*
* Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * clients to connect to the service.
*
*
* string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
@@ -313,11 +331,9 @@ public interface InstanceOrBuilder
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -329,11 +345,9 @@ public interface InstanceOrBuilder
*
*
*
- * Output only. The current zone where the Redis endpoint is placed. For Basic
- * Tier instances, this will always be the same as the [location_id][google.cloud.redis.v1beta1.Instance.location_id]
- * provided by the user at creation time. For Standard Tier instances,
- * this can be either [location_id][google.cloud.redis.v1beta1.Instance.location_id] or [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] and can
- * change after a failover event.
+ * 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];
@@ -670,9 +684,8 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -686,9 +699,8 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. The connect mode of Redis instance.
- * If not provided, default one will be used.
- * Current default: DIRECT_PEERING.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
@@ -698,4 +710,155 @@ public interface InstanceOrBuilder
* @return The connectMode.
*/
com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode();
+
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The replicaCount.
+ */
+ int getReplicaCount();
+
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index);
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getNodesCount();
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>
+ getNodesOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Output only. Info per node.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpoint.
+ */
+ java.lang.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];
+ *
+ * @return The bytes for readEndpoint.
+ */
+ com.google.protobuf.ByteString getReadEndpointBytes();
+
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The readEndpointPort.
+ */
+ int getReadEndpointPort();
+
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for readReplicasMode.
+ */
+ int getReadReplicasModeValue();
+ /**
+ *
+ *
+ *
+ * Optional. Read replica mode.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The readReplicasMode.
+ */
+ com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode();
}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java
index 2f5303df..100e6015 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
+ * Request for
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesRequest}
@@ -211,7 +212,8 @@ public int getPageSize() {
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
@@ -235,7 +237,8 @@ public java.lang.String getPageToken() {
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
@@ -436,7 +439,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Request for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
+ * Request for
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesRequest}
@@ -803,7 +807,8 @@ public Builder clearPageSize() {
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
@@ -826,7 +831,8 @@ public java.lang.String getPageToken() {
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
@@ -849,7 +855,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
@@ -871,7 +878,8 @@ public Builder setPageToken(java.lang.String value) {
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
@@ -889,7 +897,8 @@ public Builder clearPageToken() {
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java
index f9704d18..421e1eb4 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesRequestOrBuilder.java
@@ -79,7 +79,8 @@ public interface ListInstancesRequestOrBuilder
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
@@ -92,7 +93,8 @@ public interface ListInstancesRequestOrBuilder
*
*
* The `next_page_token` value returned from a previous
- * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances] request, if any.
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances]
+ * request, if any.
*
*
* string page_token = 3;
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java
index a813682b..11985b9c 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponse.java
@@ -22,7 +22,8 @@
*
*
*
- * Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
+ * Response for
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesResponse}
@@ -151,11 +152,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -172,11 +174,12 @@ public java.util.Listrepeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -194,11 +197,12 @@ public java.util.Listrepeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -215,11 +219,12 @@ public int getInstancesCount() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -236,11 +241,12 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -552,7 +558,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Response for [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
+ * Response for
+ * [ListInstances][google.cloud.redis.v1beta1.CloudRedis.ListInstances].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.ListInstancesResponse}
@@ -795,11 +802,12 @@ private void ensureInstancesIsMutable() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -819,11 +827,12 @@ public java.util.Listrepeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -843,11 +852,12 @@ public int getInstancesCount() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -867,11 +877,12 @@ public com.google.cloud.redis.v1beta1.Instance getInstances(int index) {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -897,11 +908,12 @@ public Builder setInstances(int index, com.google.cloud.redis.v1beta1.Instance v
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -925,11 +937,12 @@ public Builder setInstances(
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -955,11 +968,12 @@ public Builder addInstances(com.google.cloud.redis.v1beta1.Instance value) {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -985,11 +999,12 @@ public Builder addInstances(int index, com.google.cloud.redis.v1beta1.Instance v
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1012,11 +1027,12 @@ public Builder addInstances(com.google.cloud.redis.v1beta1.Instance.Builder buil
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1040,11 +1056,12 @@ public Builder addInstances(
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1068,11 +1085,12 @@ public Builder addAllInstances(
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1095,11 +1113,12 @@ public Builder clearInstances() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1122,11 +1141,12 @@ public Builder removeInstances(int index) {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1142,11 +1162,12 @@ public com.google.cloud.redis.v1beta1.Instance.Builder getInstancesBuilder(int i
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1166,11 +1187,12 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(in
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1191,11 +1213,12 @@ public com.google.cloud.redis.v1beta1.InstanceOrBuilder getInstancesOrBuilder(in
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1212,11 +1235,12 @@ public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder() {
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -1233,11 +1257,12 @@ public com.google.cloud.redis.v1beta1.Instance.Builder addInstancesBuilder(int i
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java
index a63bcd4f..d2e27cc6 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/ListInstancesResponseOrBuilder.java
@@ -31,11 +31,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -49,11 +50,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -67,11 +69,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -85,11 +88,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
@@ -104,11 +108,12 @@ public interface ListInstancesResponseOrBuilder
* or across all locations.
* If the `location_id` in the parent field of the request is "-", all regions
* available to the project are queried, and the results aggregated.
- * If in such an aggregated query a location is unavailable, a dummy Redis
- * entry is included in the response with the `name` field set to a value of
- * the form `projects/{project_id}/locations/{location_id}/instances/`- and
- * the `status` field set to ERROR and `status_message` field set to "location
- * not available for ListInstances".
+ * If in such an aggregated query a location is unavailable, a placeholder
+ * Redis entry is included in the response with the `name` field set to a
+ * value of the form
+ * `projects/{project_id}/locations/{location_id}/instances/`- and the
+ * `status` field set to ERROR and `status_message` field set to "location not
+ * available for ListInstances".
*
*
* repeated .google.cloud.redis.v1beta1.Instance instances = 1;
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java
new file mode 100644
index 00000000..72524b67
--- /dev/null
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/NodeInfo.java
@@ -0,0 +1,812 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1beta1/cloud_redis.proto
+
+package com.google.cloud.redis.v1beta1;
+
+/**
+ *
+ *
+ *
+ * Node specific properties.
+ *
+ *
+ * Protobuf type {@code google.cloud.redis.v1beta1.NodeInfo}
+ */
+public final class NodeInfo extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.NodeInfo)
+ NodeInfoOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use NodeInfo.newBuilder() to construct.
+ private NodeInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private NodeInfo() {
+ id_ = "";
+ zone_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new NodeInfo();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private NodeInfo(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ id_ = s;
+ break;
+ }
+ case 18:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ zone_ = s;
+ break;
+ }
+ default:
+ {
+ if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_NodeInfo_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_NodeInfo_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.redis.v1beta1.NodeInfo.class,
+ com.google.cloud.redis.v1beta1.NodeInfo.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object id_;
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The id.
+ */
+ @java.lang.Override
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for id.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ZONE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object zone_;
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The zone.
+ */
+ @java.lang.Override
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ zone_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for zone.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, zone_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(zone_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, zone_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.redis.v1beta1.NodeInfo)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1beta1.NodeInfo other = (com.google.cloud.redis.v1beta1.NodeInfo) obj;
+
+ if (!getId().equals(other.getId())) return false;
+ if (!getZone().equals(other.getZone())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + ZONE_FIELD_NUMBER;
+ hash = (53 * hash) + getZone().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseDelimitedFrom(
+ java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+ PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() {
+ return newBuilder();
+ }
+
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+
+ public static Builder newBuilder(com.google.cloud.redis.v1beta1.NodeInfo prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ *
+ *
+ *
+ * Node specific properties.
+ *
+ *
+ * Protobuf type {@code google.cloud.redis.v1beta1.NodeInfo}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object zone_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The zone.
+ */
+ public java.lang.String getZone() {
+ java.lang.Object ref = zone_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ zone_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for zone.
+ */
+ public com.google.protobuf.ByteString getZoneBytes() {
+ java.lang.Object ref = zone_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ zone_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZone(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ zone_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearZone() {
+
+ zone_ = getDefaultInstance().getZone();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for zone to set.
+ * @return This builder for chaining.
+ */
+ public Builder setZoneBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ zone_ = value;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1beta1.NodeInfo)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.NodeInfo)
+ private static final com.google.cloud.redis.v1beta1.NodeInfo DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.NodeInfo();
+ }
+
+ public static com.google.cloud.redis.v1beta1.NodeInfo getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The id.
+ */
+ java.lang.String getId();
+ /**
+ *
+ *
+ *
+ * Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ *
+ *
+ * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for id.
+ */
+ com.google.protobuf.ByteString getIdBytes();
+
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The zone.
+ */
+ java.lang.String getZone();
+ /**
+ *
+ *
+ *
+ * Output only. Location of the node.
+ *
+ *
+ * string zone = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for zone.
+ */
+ com.google.protobuf.ByteString getZoneBytes();
+}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java
index a67f3279..5ff9a739 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
+ * Request for
+ * [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.UpdateInstanceRequest}
@@ -146,6 +147,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -168,6 +170,7 @@ public boolean hasUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -190,6 +193,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -439,7 +443,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Request for [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
+ * Request for
+ * [UpdateInstance][google.cloud.redis.v1beta1.CloudRedis.UpdateInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.UpdateInstanceRequest}
@@ -632,6 +637,7 @@ public Builder mergeFrom(
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -653,6 +659,7 @@ public boolean hasUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -680,6 +687,7 @@ public com.google.protobuf.FieldMask getUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -709,6 +717,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -735,6 +744,7 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -766,6 +776,7 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -793,6 +804,7 @@ public Builder clearUpdateMask() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -814,6 +826,7 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -839,6 +852,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java
index 4cc69afa..b31c028a 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpdateInstanceRequestOrBuilder.java
@@ -34,6 +34,7 @@ public interface UpdateInstanceRequestOrBuilder
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -53,6 +54,7 @@ public interface UpdateInstanceRequestOrBuilder
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
@@ -72,6 +74,7 @@ public interface UpdateInstanceRequestOrBuilder
* * `labels`
* * `memorySizeGb`
* * `redisConfig`
+ * * `replica_count`
*
*
* .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = REQUIRED];
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java
index 9a817be4..33379ba2 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/UpgradeInstanceRequest.java
@@ -22,7 +22,8 @@
*
*
*
- * Request for [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
+ * Request for
+ * [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.UpgradeInstanceRequest}
@@ -398,7 +399,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
*
*
*
- * Request for [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
+ * Request for
+ * [UpgradeInstance][google.cloud.redis.v1beta1.CloudRedis.UpgradeInstance].
*
*
* Protobuf type {@code google.cloud.redis.v1beta1.UpgradeInstanceRequest}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto b/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
index 3eb99d8f..4ffb2908 100644
--- a/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
+++ b/proto-google-cloud-redis-v1beta1/src/main/proto/google/cloud/redis/v1beta1/cloud_redis.proto
@@ -1,4 +1,4 @@
-// Copyright 2020 Google LLC
+// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@@ -42,11 +42,12 @@ option java_package = "com.google.cloud.redis.v1beta1";
// * As such, Redis instances are resources of the form:
// `/projects/{project_id}/locations/{location_id}/instances/{instance_id}`
//
-// Note that location_id must be refering to a GCP `region`; for example:
+// Note that location_id must be referring to a GCP `region`; for example:
// * `projects/redpepper-1290/locations/us-central1/instances/my-redis`
service CloudRedis {
option (google.api.default_host) = "redis.googleapis.com";
- option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
+ option (google.api.oauth_scopes) =
+ "https://www.googleapis.com/auth/cloud-platform";
// Lists all Redis instances owned by a project in either the specified
// location (region) or all locations.
@@ -79,12 +80,13 @@ service CloudRedis {
//
// The creation is executed asynchronously and callers may check the returned
// operation to track its progress. Once the operation is completed the Redis
- // instance will be fully functional. Completed longrunning.Operation will
+ // instance will be fully functional. The completed longrunning.Operation will
// contain the new instance object in the response field.
//
// The returned operation is automatically deleted after a few hours, so there
// is no need to call DeleteOperation.
- rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) {
+ rpc CreateInstance(CreateInstanceRequest)
+ returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{parent=projects/*/locations/*}/instances"
body: "instance"
@@ -101,7 +103,8 @@ service CloudRedis {
// Completed longrunning.Operation will contain the new instance object
// in the response field. The returned operation is automatically deleted
// after a few hours, so there is no need to call DeleteOperation.
- rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) {
+ rpc UpdateInstance(UpdateInstanceRequest)
+ returns (google.longrunning.Operation) {
option (google.api.http) = {
patch: "/v1beta1/{instance.name=projects/*/locations/*/instances/*}"
body: "instance"
@@ -115,7 +118,8 @@ service CloudRedis {
// Upgrades Redis instance to the newer Redis version specified in the
// request.
- rpc UpgradeInstance(UpgradeInstanceRequest) returns (google.longrunning.Operation) {
+ rpc UpgradeInstance(UpgradeInstanceRequest)
+ returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{name=projects/*/locations/*/instances/*}:upgrade"
body: "*"
@@ -135,7 +139,8 @@ service CloudRedis {
//
// The returned operation is automatically deleted after a few hours, so
// there is no need to call DeleteOperation.
- rpc ImportInstance(ImportInstanceRequest) returns (google.longrunning.Operation) {
+ rpc ImportInstance(ImportInstanceRequest)
+ returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{name=projects/*/locations/*/instances/*}:import"
body: "*"
@@ -153,7 +158,8 @@ service CloudRedis {
//
// The returned operation is automatically deleted after a few hours, so
// there is no need to call DeleteOperation.
- rpc ExportInstance(ExportInstanceRequest) returns (google.longrunning.Operation) {
+ rpc ExportInstance(ExportInstanceRequest)
+ returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{name=projects/*/locations/*/instances/*}:export"
body: "*"
@@ -165,9 +171,10 @@ service CloudRedis {
};
}
- // Initiates a failover of the master node to current replica node for a
+ // Initiates a failover of the primary node to current replica node for a
// specific STANDARD tier Cloud Memorystore for Redis instance.
- rpc FailoverInstance(FailoverInstanceRequest) returns (google.longrunning.Operation) {
+ rpc FailoverInstance(FailoverInstanceRequest)
+ returns (google.longrunning.Operation) {
option (google.api.http) = {
post: "/v1beta1/{name=projects/*/locations/*/instances/*}:failover"
body: "*"
@@ -181,7 +188,8 @@ service CloudRedis {
// Deletes a specific Redis instance. Instance stops serving and data is
// deleted.
- rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) {
+ rpc DeleteInstance(DeleteInstanceRequest)
+ returns (google.longrunning.Operation) {
option (google.api.http) = {
delete: "/v1beta1/{name=projects/*/locations/*/instances/*}"
};
@@ -193,6 +201,15 @@ service CloudRedis {
}
}
+// Node specific properties.
+message NodeInfo {
+ // Output only. Node identifying string. e.g. 'node-0', 'node-1'
+ string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
+
+ // Output only. Location of the node.
+ string zone = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
+}
+
// A Google Cloud Redis instance.
message Instance {
option (google.api.resource) = {
@@ -249,14 +266,30 @@ message Instance {
// Not set.
CONNECT_MODE_UNSPECIFIED = 0;
- // Connect via directly peering with memorystore redis hosted service.
+ // Connect via direct peering to the Memorystore for Redis hosted service.
DIRECT_PEERING = 1;
- // Connect with google via private service access and share connection
- // across google managed services.
+ // Connect your Memorystore for Redis instance using Private Service
+ // Access. Private services access provides an IP address range for multiple
+ // Google Cloud services, including Memorystore.
PRIVATE_SERVICE_ACCESS = 2;
}
+ // Read replicas mode.
+ enum ReadReplicasMode {
+ // If not set, Memorystore for Redis backend will pick the mode based on
+ // other fields in the request.
+ READ_REPLICAS_MODE_UNSPECIFIED = 0;
+
+ // If disabled, read endpoint will not be provided and the instance cannot
+ // scale up or down the number of replicas.
+ READ_REPLICAS_DISABLED = 1;
+
+ // If enabled, read endpoint will be provided and the instance can scale
+ // up and down the number of replicas.
+ READ_REPLICAS_ENABLED = 2;
+ }
+
// 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}`
@@ -264,8 +297,10 @@ message Instance {
// 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.v1beta1.Instance.location_id] and
- // [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id] fields for more details.
+ // should be provisioned in. Refer to
+ // [location_id][google.cloud.redis.v1beta1.Instance.location_id] and
+ // [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
+ // fields for more details.
string name = 1 [(google.api.field_behavior) = REQUIRED];
// An arbitrary and optional user-provided name for the instance.
@@ -275,15 +310,17 @@ message Instance {
map