values) {
+ internalGetMutableLabels().getMutableMap().putAll(values);
+ bitField0_ |= 0x00000004;
+ return this;
+ }
+
+ private java.lang.Object locationId_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The zone where the instance will be provisioned. If not provided,
+ * the service will choose a zone from the specified region for the instance.
+ * For standard tier, additional nodes will be added across multiple zones for
+ * protection against zonal failures. If specified, at least one node will be
+ * provisioned in this zone.
+ *
+ *
+ * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The locationId.
+ */
+ public java.lang.String getLocationId() {
+ java.lang.Object ref = locationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ locationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The zone where the instance will be provisioned. If not provided,
+ * the service will choose a zone from the specified region for the instance.
+ * For standard tier, additional nodes will be added across multiple zones for
+ * protection against zonal failures. If specified, at least one node will be
+ * provisioned in this zone.
+ *
+ *
+ * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for locationId.
+ */
+ public com.google.protobuf.ByteString getLocationIdBytes() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ locationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The zone where the instance will be provisioned. If not provided,
+ * the service will choose a zone from the specified region for the instance.
+ * For standard tier, additional nodes will be added across multiple zones for
+ * protection against zonal failures. If specified, at least one node will be
+ * provisioned in this zone.
+ *
+ *
+ * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The locationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ locationId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The zone where the instance will be provisioned. If not provided,
+ * the service will choose a zone from the specified region for the instance.
+ * For standard tier, additional nodes will be added across multiple zones for
+ * protection against zonal failures. If specified, at least one node will be
+ * provisioned in this zone.
+ *
+ *
+ * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearLocationId() {
+ locationId_ = getDefaultInstance().getLocationId();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The zone where the instance will be provisioned. If not provided,
+ * the service will choose a zone from the specified region for the instance.
+ * For standard tier, additional nodes will be added across multiple zones for
+ * protection against zonal failures. If specified, at least one node will be
+ * provisioned in this zone.
+ *
+ *
+ * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for locationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ locationId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object alternativeLocationId_ = "";
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The alternativeLocationId.
+ */
+ public java.lang.String getAlternativeLocationId() {
+ java.lang.Object ref = alternativeLocationId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ alternativeLocationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The bytes for alternativeLocationId.
+ */
+ public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
+ java.lang.Object ref = alternativeLocationId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ alternativeLocationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The alternativeLocationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAlternativeLocationId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ alternativeLocationId_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAlternativeLocationId() {
+ alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The bytes for alternativeLocationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ alternativeLocationId_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object redisVersion_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. The version of Redis software.
+ * If not provided, latest supported version will be used. Currently, the
+ * supported values are:
+ * * `REDIS_3_2` for Redis 3.2 compatibility
+ * * `REDIS_4_0` for Redis 4.0 compatibility (default)
+ * * `REDIS_5_0` for Redis 5.0 compatibility
+ * * `REDIS_6_X` for Redis 6.x compatibility
+ *
+ *
+ * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The redisVersion.
+ */
+ public java.lang.String getRedisVersion() {
+ java.lang.Object ref = redisVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ redisVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The version of Redis software.
+ * If not provided, latest supported version will be used. Currently, the
+ * supported values are:
+ * * `REDIS_3_2` for Redis 3.2 compatibility
+ * * `REDIS_4_0` for Redis 4.0 compatibility (default)
+ * * `REDIS_5_0` for Redis 5.0 compatibility
+ * * `REDIS_6_X` for Redis 6.x compatibility
+ *
+ *
+ * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for redisVersion.
+ */
+ public com.google.protobuf.ByteString getRedisVersionBytes() {
+ java.lang.Object ref = redisVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ redisVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The version of Redis software.
+ * If not provided, latest supported version will be used. Currently, the
+ * supported values are:
+ * * `REDIS_3_2` for Redis 3.2 compatibility
+ * * `REDIS_4_0` for Redis 4.0 compatibility (default)
+ * * `REDIS_5_0` for Redis 5.0 compatibility
+ * * `REDIS_6_X` for Redis 6.x compatibility
+ *
+ *
+ * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The redisVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedisVersion(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ redisVersion_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The version of Redis software.
+ * If not provided, latest supported version will be used. Currently, the
+ * supported values are:
+ * * `REDIS_3_2` for Redis 3.2 compatibility
+ * * `REDIS_4_0` for Redis 4.0 compatibility (default)
+ * * `REDIS_5_0` for Redis 5.0 compatibility
+ * * `REDIS_6_X` for Redis 6.x compatibility
+ *
+ *
+ * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRedisVersion() {
+ redisVersion_ = getDefaultInstance().getRedisVersion();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. The version of Redis software.
+ * If not provided, latest supported version will be used. Currently, the
+ * supported values are:
+ * * `REDIS_3_2` for Redis 3.2 compatibility
+ * * `REDIS_4_0` for Redis 4.0 compatibility (default)
+ * * `REDIS_5_0` for Redis 5.0 compatibility
+ * * `REDIS_6_X` for Redis 6.x compatibility
+ *
+ *
+ * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for redisVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ redisVersion_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
- private java.lang.Object name_ = "";
+ private java.lang.Object reservedIpRange_ = "";
/**
*
*
*
- * Required. Unique name of the resource in this scope including project and
- * location using the form:
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note: Redis instances are managed and addressed at regional level so
- * location_id here refers to a GCP region; however, users may choose which
- * specific zone (or collection of zones for cross-zone instances) an instance
- * should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The name.
+ * @return The reservedIpRange.
*/
- public java.lang.String getName() {
- java.lang.Object ref = name_;
+ public java.lang.String getReservedIpRange() {
+ java.lang.Object ref = reservedIpRange_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- name_ = s;
+ reservedIpRange_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -3907,26 +5407,26 @@ public java.lang.String getName() {
*
*
*
- * Required. Unique name of the resource in this scope including project and
- * location using the form:
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note: Redis instances are managed and addressed at regional level so
- * location_id here refers to a GCP region; however, users may choose which
- * specific zone (or collection of zones for cross-zone instances) an instance
- * should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for name.
+ * @return The bytes for reservedIpRange.
*/
- public com.google.protobuf.ByteString getNameBytes() {
- java.lang.Object ref = name_;
+ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
+ java.lang.Object ref = reservedIpRange_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- name_ = b;
+ reservedIpRange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -3936,27 +5436,27 @@ public com.google.protobuf.ByteString getNameBytes() {
*
*
*
- * Required. Unique name of the resource in this scope including project and
- * location using the form:
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note: Redis instances are managed and addressed at regional level so
- * location_id here refers to a GCP region; however, users may choose which
- * specific zone (or collection of zones for cross-zone instances) an instance
- * should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The name to set.
+ * @param value The reservedIpRange to set.
* @return This builder for chaining.
*/
- public Builder setName(java.lang.String value) {
+ public Builder setReservedIpRange(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- name_ = value;
- bitField0_ |= 0x00000001;
+ reservedIpRange_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
@@ -3964,23 +5464,23 @@ public Builder setName(java.lang.String value) {
*
*
*
- * Required. Unique name of the resource in this scope including project and
- * location using the form:
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note: Redis instances are managed and addressed at regional level so
- * location_id here refers to a GCP region; however, users may choose which
- * specific zone (or collection of zones for cross-zone instances) an instance
- * should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
- public Builder clearName() {
- name_ = getDefaultInstance().getName();
- bitField0_ = (bitField0_ & ~0x00000001);
+ public Builder clearReservedIpRange() {
+ reservedIpRange_ = getDefaultInstance().getReservedIpRange();
+ bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
return this;
}
@@ -3988,50 +5488,54 @@ public Builder clearName() {
*
*
*
- * Required. Unique name of the resource in this scope including project and
- * location using the form:
- * `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
- * Note: Redis instances are managed and addressed at regional level so
- * location_id here refers to a GCP region; however, users may choose which
- * specific zone (or collection of zones for cross-zone instances) an instance
- * should be provisioned in. Refer to [location_id][google.cloud.redis.v1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1.Instance.alternative_location_id] fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The bytes for name to set.
+ * @param value The bytes for reservedIpRange to set.
* @return This builder for chaining.
*/
- public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- name_ = value;
- bitField0_ |= 0x00000001;
+ reservedIpRange_ = value;
+ bitField0_ |= 0x00000040;
onChanged();
return this;
}
- private java.lang.Object displayName_ = "";
+ private java.lang.Object secondaryIpRange_ = "";
/**
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Optional. Additional IP range for node placement. Required when enabling
+ * read replicas on an existing instance. For DIRECT_PEERING mode value must
+ * be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
+ * value must be the name of an allocated address range associated with the
+ * private service access connection, or "auto".
*
*
- * string display_name = 2;
+ * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The displayName.
+ * @return The secondaryIpRange.
*/
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
+ public java.lang.String getSecondaryIpRange() {
+ java.lang.Object ref = secondaryIpRange_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
+ secondaryIpRange_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4041,19 +5545,23 @@ public java.lang.String getDisplayName() {
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Optional. Additional IP range for node placement. Required when enabling
+ * read replicas on an existing instance. For DIRECT_PEERING mode value must
+ * be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
+ * value must be the name of an allocated address range associated with the
+ * private service access connection, or "auto".
*
*
- * string display_name = 2;
+ * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for displayName.
+ * @return The bytes for secondaryIpRange.
*/
- public com.google.protobuf.ByteString getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
+ public com.google.protobuf.ByteString getSecondaryIpRangeBytes() {
+ java.lang.Object ref = secondaryIpRange_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- displayName_ = b;
+ secondaryIpRange_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -4063,20 +5571,24 @@ public com.google.protobuf.ByteString getDisplayNameBytes() {
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Optional. Additional IP range for node placement. Required when enabling
+ * read replicas on an existing instance. For DIRECT_PEERING mode value must
+ * be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
+ * value must be the name of an allocated address range associated with the
+ * private service access connection, or "auto".
*
*
- * string display_name = 2;
+ * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The displayName to set.
+ * @param value The secondaryIpRange to set.
* @return This builder for chaining.
*/
- public Builder setDisplayName(java.lang.String value) {
+ public Builder setSecondaryIpRange(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- displayName_ = value;
- bitField0_ |= 0x00000002;
+ secondaryIpRange_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
@@ -4084,16 +5596,20 @@ public Builder setDisplayName(java.lang.String value) {
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Optional. Additional IP range for node placement. Required when enabling
+ * read replicas on an existing instance. For DIRECT_PEERING mode value must
+ * be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
+ * value must be the name of an allocated address range associated with the
+ * private service access connection, or "auto".
*
*
- * string display_name = 2;
+ * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
- public Builder clearDisplayName() {
- displayName_ = getDefaultInstance().getDisplayName();
- bitField0_ = (bitField0_ & ~0x00000002);
+ public Builder clearSecondaryIpRange() {
+ secondaryIpRange_ = getDefaultInstance().getSecondaryIpRange();
+ bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
return this;
}
@@ -4101,210 +5617,213 @@ public Builder clearDisplayName() {
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Optional. Additional IP range for node placement. Required when enabling
+ * read replicas on an existing instance. For DIRECT_PEERING mode value must
+ * be a CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode
+ * value must be the name of an allocated address range associated with the
+ * private service access connection, or "auto".
*
*
- * string display_name = 2;
+ * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The bytes for displayName to set.
+ * @param value The bytes for secondaryIpRange to set.
* @return This builder for chaining.
*/
- public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ public Builder setSecondaryIpRangeBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- displayName_ = value;
- bitField0_ |= 0x00000002;
+ secondaryIpRange_ = value;
+ bitField0_ |= 0x00000080;
onChanged();
return this;
}
- private com.google.protobuf.MapField labels_;
-
- private com.google.protobuf.MapField internalGetLabels() {
- if (labels_ == null) {
- return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry);
- }
- return labels_;
- }
-
- private com.google.protobuf.MapField
- internalGetMutableLabels() {
- if (labels_ == null) {
- labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
- }
- if (!labels_.isMutable()) {
- labels_ = labels_.copy();
+ private java.lang.Object host_ = "";
+ /**
+ *
+ *
+ *
+ * Output only. Hostname or IP address of the exposed Redis endpoint used by
+ * clients to connect to the service.
+ *
+ *
+ * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The host.
+ */
+ public java.lang.String getHost() {
+ java.lang.Object ref = host_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ host_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
}
- bitField0_ |= 0x00000004;
- onChanged();
- return labels_;
- }
-
- public int getLabelsCount() {
- return internalGetLabels().getMap().size();
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. Hostname or IP address of the exposed Redis endpoint used by
+ * clients to connect to the service.
*
*
- * map<string, string> labels = 3;
+ * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The bytes for host.
*/
- @java.lang.Override
- public boolean containsLabels(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
+ public com.google.protobuf.ByteString getHostBytes() {
+ java.lang.Object ref = host_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ host_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
}
- return internalGetLabels().getMap().containsKey(key);
- }
- /** Use {@link #getLabelsMap()} instead. */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map getLabels() {
- return getLabelsMap();
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. Hostname or IP address of the exposed Redis endpoint used by
+ * clients to connect to the service.
*
*
- * map<string, string> labels = 3;
+ * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The host to set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public java.util.Map getLabelsMap() {
- return internalGetLabels().getMap();
+ public Builder setHost(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ host_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. Hostname or IP address of the exposed Redis endpoint used by
+ * clients to connect to the service.
*
*
- * map<string, string> labels = 3;
+ * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public /* nullable */ java.lang.String getLabelsOrDefault(
- java.lang.String key,
- /* nullable */
- java.lang.String defaultValue) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map map = internalGetLabels().getMap();
- return map.containsKey(key) ? map.get(key) : defaultValue;
+ public Builder clearHost() {
+ host_ = getDefaultInstance().getHost();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. Hostname or IP address of the exposed Redis endpoint used by
+ * clients to connect to the service.
*
*
- * map<string, string> labels = 3;
+ * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The bytes for host to set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public java.lang.String getLabelsOrThrow(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- java.util.Map map = internalGetLabels().getMap();
- if (!map.containsKey(key)) {
- throw new java.lang.IllegalArgumentException();
+ public Builder setHostBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
}
- return map.get(key);
- }
-
- public Builder clearLabels() {
- bitField0_ = (bitField0_ & ~0x00000004);
- internalGetMutableLabels().getMutableMap().clear();
+ checkByteStringIsUtf8(value);
+ host_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
return this;
}
+
+ private int port_;
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The port number of the exposed Redis endpoint.
*
*
- * map<string, string> labels = 3;
+ * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The port.
*/
- public Builder removeLabels(java.lang.String key) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- internalGetMutableLabels().getMutableMap().remove(key);
- return this;
- }
- /** Use alternate mutation accessors instead. */
- @java.lang.Deprecated
- public java.util.Map getMutableLabels() {
- bitField0_ |= 0x00000004;
- return internalGetMutableLabels().getMutableMap();
+ @java.lang.Override
+ public int getPort() {
+ return port_;
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The port number of the exposed Redis endpoint.
*
*
- * map<string, string> labels = 3;
+ * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The port to set.
+ * @return This builder for chaining.
*/
- public Builder putLabels(java.lang.String key, java.lang.String value) {
- if (key == null) {
- throw new NullPointerException("map key");
- }
- if (value == null) {
- throw new NullPointerException("map value");
- }
- internalGetMutableLabels().getMutableMap().put(key, value);
- bitField0_ |= 0x00000004;
+ public Builder setPort(int value) {
+
+ port_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
return this;
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The port number of the exposed Redis endpoint.
*
*
- * map<string, string> labels = 3;
+ * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
*/
- public Builder putAllLabels(java.util.Map values) {
- internalGetMutableLabels().getMutableMap().putAll(values);
- bitField0_ |= 0x00000004;
+ public Builder clearPort() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ port_ = 0;
+ onChanged();
return this;
}
- private java.lang.Object locationId_ = "";
+ private java.lang.Object currentLocationId_ = "";
/**
*
*
*
- * Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone from the specified region for the instance.
- * For standard tier, additional nodes will be added across multiple zones for
- * protection against zonal failures. If specified, at least one node will be
- * provisioned in this zone.
+ * 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 location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The locationId.
+ * @return The currentLocationId.
*/
- public java.lang.String getLocationId() {
- java.lang.Object ref = locationId_;
+ public java.lang.String getCurrentLocationId() {
+ java.lang.Object ref = currentLocationId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- locationId_ = s;
+ currentLocationId_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4314,23 +5833,21 @@ public java.lang.String getLocationId() {
*
*
*
- * Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone from the specified region for the instance.
- * For standard tier, additional nodes will be added across multiple zones for
- * protection against zonal failures. If specified, at least one node will be
- * provisioned in this zone.
+ * 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 location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The bytes for locationId.
+ * @return The bytes for currentLocationId.
*/
- public com.google.protobuf.ByteString getLocationIdBytes() {
- java.lang.Object ref = locationId_;
+ public com.google.protobuf.ByteString getCurrentLocationIdBytes() {
+ java.lang.Object ref = currentLocationId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- locationId_ = b;
+ currentLocationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -4340,24 +5857,22 @@ public com.google.protobuf.ByteString getLocationIdBytes() {
*
*
*
- * Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone from the specified region for the instance.
- * For standard tier, additional nodes will be added across multiple zones for
- * protection against zonal failures. If specified, at least one node will be
- * provisioned in this zone.
+ * 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 location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @param value The locationId to set.
+ * @param value The currentLocationId to set.
* @return This builder for chaining.
*/
- public Builder setLocationId(java.lang.String value) {
+ public Builder setCurrentLocationId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- locationId_ = value;
- bitField0_ |= 0x00000008;
+ currentLocationId_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
@@ -4365,125 +5880,180 @@ 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 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.
+ * 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 location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
- public Builder clearLocationId() {
- locationId_ = getDefaultInstance().getLocationId();
- bitField0_ = (bitField0_ & ~0x00000008);
+ public Builder clearCurrentLocationId() {
+ currentLocationId_ = getDefaultInstance().getCurrentLocationId();
+ bitField0_ = (bitField0_ & ~0x00000400);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The bytes for currentLocationId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ currentLocationId_ = value;
+ bitField0_ |= 0x00000400;
onChanged();
return this;
}
+
+ private com.google.protobuf.Timestamp createTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ createTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. The time the instance was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return ((bitField0_ & 0x00000800) != 0);
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time the instance was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
/**
*
*
*
- * Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone from the specified region for the instance.
- * For standard tier, additional nodes will be added across multiple zones for
- * protection against zonal failures. If specified, at least one node will be
- * provisioned in this zone.
+ * Output only. The time the instance was created.
*
*
- * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The bytes for locationId to set.
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ } else {
+ createTimeBuilder_.setMessage(value);
}
- checkByteStringIsUtf8(value);
- locationId_ = value;
- bitField0_ |= 0x00000008;
+ bitField0_ |= 0x00000800;
onChanged();
return this;
}
-
- private java.lang.Object alternativeLocationId_ = "";
/**
*
*
*
- * 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.
+ * Output only. The time the instance was created.
*
*
- * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The alternativeLocationId.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public java.lang.String getAlternativeLocationId() {
- java.lang.Object ref = alternativeLocationId_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- alternativeLocationId_ = s;
- return s;
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
} else {
- return (java.lang.String) ref;
+ createTimeBuilder_.setMessage(builderForValue.build());
}
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
}
/**
*
*
*
- * 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.
+ * Output only. The time the instance was created.
*
*
- * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for alternativeLocationId.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public com.google.protobuf.ByteString getAlternativeLocationIdBytes() {
- java.lang.Object ref = alternativeLocationId_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- alternativeLocationId_ = b;
- return b;
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000800) != 0)
+ && createTime_ != null
+ && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCreateTimeBuilder().mergeFrom(value);
+ } else {
+ createTime_ = value;
+ }
} else {
- return (com.google.protobuf.ByteString) ref;
+ createTimeBuilder_.mergeFrom(value);
}
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
}
/**
*
*
*
- * 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.
+ * Output only. The time the instance was created.
*
*
- * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The alternativeLocationId to set.
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setAlternativeLocationId(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearCreateTime() {
+ bitField0_ = (bitField0_ & ~0x00000800);
+ createTime_ = null;
+ if (createTimeBuilder_ != null) {
+ createTimeBuilder_.dispose();
+ createTimeBuilder_ = null;
}
- alternativeLocationId_ = value;
- bitField0_ |= 0x00000010;
onChanged();
return this;
}
@@ -4491,131 +6061,101 @@ public Builder setAlternativeLocationId(java.lang.String value) {
*
*
*
- * Optional. If specified, at least one node will be provisioned in this zone
- * in addition to the zone specified in location_id. Only applicable to
- * standard tier. If provided, it must be a different zone from the one
- * provided in [location_id]. Additional nodes beyond the first 2 will be
- * placed in zones selected by the service.
+ * Output only. The time the instance was created.
*
*
- * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder clearAlternativeLocationId() {
- alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId();
- bitField0_ = (bitField0_ & ~0x00000010);
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ bitField0_ |= 0x00000800;
onChanged();
- return this;
+ return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
- * 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.
+ * Output only. The time the instance was created.
*
*
- * string alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The bytes for alternativeLocationId to set.
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
}
- checkByteStringIsUtf8(value);
- alternativeLocationId_ = value;
- bitField0_ |= 0x00000010;
- onChanged();
- return this;
}
-
- private java.lang.Object redisVersion_ = "";
/**
*
*
*
- * Optional. The version of Redis software.
- * If not provided, latest supported version will be used. Currently, the
- * supported values are:
- * * `REDIS_3_2` for Redis 3.2 compatibility
- * * `REDIS_4_0` for Redis 4.0 compatibility (default)
- * * `REDIS_5_0` for Redis 5.0 compatibility
- * * `REDIS_6_X` for Redis 6.x compatibility
+ * Output only. The time the instance was created.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The redisVersion.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public java.lang.String getRedisVersion() {
- java.lang.Object ref = redisVersion_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- redisVersion_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCreateTimeFieldBuilder() {
+ if (createTimeBuilder_ == null) {
+ createTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCreateTime(), getParentForChildren(), isClean());
+ createTime_ = null;
}
+ return createTimeBuilder_;
}
+
+ private int state_ = 0;
/**
*
*
*
- * Optional. The version of Redis software.
- * If not provided, latest supported version will be used. Currently, the
- * supported values are:
- * * `REDIS_3_2` for Redis 3.2 compatibility
- * * `REDIS_4_0` for Redis 4.0 compatibility (default)
- * * `REDIS_5_0` for Redis 5.0 compatibility
- * * `REDIS_6_X` for Redis 6.x compatibility
+ * Output only. The current state of this instance.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The bytes for redisVersion.
+ * @return The enum numeric value on the wire for state.
*/
- public com.google.protobuf.ByteString getRedisVersionBytes() {
- java.lang.Object ref = redisVersion_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- redisVersion_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ @java.lang.Override
+ public int getStateValue() {
+ return state_;
}
/**
*
*
*
- * Optional. The version of Redis software.
- * If not provided, latest supported version will be used. Currently, the
- * supported values are:
- * * `REDIS_3_2` for Redis 3.2 compatibility
- * * `REDIS_4_0` for Redis 4.0 compatibility (default)
- * * `REDIS_5_0` for Redis 5.0 compatibility
- * * `REDIS_6_X` for Redis 6.x compatibility
+ * Output only. The current state of this instance.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The redisVersion to set.
+ * @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
- public Builder setRedisVersion(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- redisVersion_ = value;
- bitField0_ |= 0x00000020;
+ public Builder setStateValue(int value) {
+ state_ = value;
+ bitField0_ |= 0x00001000;
onChanged();
return this;
}
@@ -4623,79 +6163,83 @@ public Builder setRedisVersion(java.lang.String value) {
*
*
*
- * Optional. The version of Redis software.
- * If not provided, latest supported version will be used. Currently, the
- * supported values are:
- * * `REDIS_3_2` for Redis 3.2 compatibility
- * * `REDIS_4_0` for Redis 4.0 compatibility (default)
- * * `REDIS_5_0` for Redis 5.0 compatibility
- * * `REDIS_6_X` for Redis 6.x compatibility
+ * Output only. The current state of this instance.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return This builder for chaining.
+ * @return The state.
*/
- public Builder clearRedisVersion() {
- redisVersion_ = getDefaultInstance().getRedisVersion();
- bitField0_ = (bitField0_ & ~0x00000020);
- onChanged();
- return this;
+ @java.lang.Override
+ public com.google.cloud.redis.v1.Instance.State getState() {
+ com.google.cloud.redis.v1.Instance.State result =
+ com.google.cloud.redis.v1.Instance.State.forNumber(state_);
+ return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result;
}
/**
*
*
*
- * Optional. The version of Redis software.
- * If not provided, latest supported version will be used. Currently, the
- * supported values are:
- * * `REDIS_3_2` for Redis 3.2 compatibility
- * * `REDIS_4_0` for Redis 4.0 compatibility (default)
- * * `REDIS_5_0` for Redis 5.0 compatibility
- * * `REDIS_6_X` for Redis 6.x compatibility
+ * Output only. The current state of this instance.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The bytes for redisVersion to set.
+ * @param value The state to set.
* @return This builder for chaining.
*/
- public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) {
+ public Builder setState(com.google.cloud.redis.v1.Instance.State value) {
if (value == null) {
throw new NullPointerException();
}
- checkByteStringIsUtf8(value);
- redisVersion_ = value;
- bitField0_ |= 0x00000020;
+ bitField0_ |= 0x00001000;
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The current state of this instance.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ state_ = 0;
onChanged();
return this;
}
- private java.lang.Object reservedIpRange_ = "";
+ private java.lang.Object statusMessage_ = "";
/**
*
*
*
- * 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.
+ * Output only. Additional information about the current status of this
+ * instance, if available.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The reservedIpRange.
+ * @return The statusMessage.
*/
- public java.lang.String getReservedIpRange() {
- java.lang.Object ref = reservedIpRange_;
+ public java.lang.String getStatusMessage() {
+ java.lang.Object ref = statusMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- reservedIpRange_ = s;
+ statusMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4705,26 +6249,20 @@ public java.lang.String getReservedIpRange() {
*
*
*
- * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
- * that are reserved for this instance. Range must
- * be unique and non-overlapping with existing subnets in an authorized
- * network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
- * address ranges associated with this private service access connection.
- * If not provided, the service will choose an unused /29 block, for
- * example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED
- * the default block size is /28.
+ * Output only. Additional information about the current status of this
+ * instance, if available.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The bytes for reservedIpRange.
+ * @return The bytes for statusMessage.
*/
- public com.google.protobuf.ByteString getReservedIpRangeBytes() {
- java.lang.Object ref = reservedIpRange_;
+ public com.google.protobuf.ByteString getStatusMessageBytes() {
+ java.lang.Object ref = statusMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- reservedIpRange_ = b;
+ statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -4734,27 +6272,21 @@ public com.google.protobuf.ByteString getReservedIpRangeBytes() {
*
*
*
- * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
- * that are reserved for this instance. Range must
- * be unique and non-overlapping with existing subnets in an authorized
- * network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
- * address ranges associated with this private service access connection.
- * If not provided, the service will choose an unused /29 block, for
- * example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED
- * the default block size is /28.
+ * Output only. Additional information about the current status of this
+ * instance, if available.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @param value The reservedIpRange to set.
+ * @param value The statusMessage to set.
* @return This builder for chaining.
*/
- public Builder setReservedIpRange(java.lang.String value) {
+ public Builder setStatusMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- reservedIpRange_ = value;
- bitField0_ |= 0x00000040;
+ statusMessage_ = value;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
@@ -4762,23 +6294,17 @@ public Builder setReservedIpRange(java.lang.String value) {
*
*
*
- * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
- * that are reserved for this instance. Range must
- * be unique and non-overlapping with existing subnets in an authorized
- * network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
- * address ranges associated with this private service access connection.
- * If not provided, the service will choose an unused /29 block, for
- * example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED
- * the default block size is /28.
+ * Output only. Additional information about the current status of this
+ * instance, if available.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
- public Builder clearReservedIpRange() {
- reservedIpRange_ = getDefaultInstance().getReservedIpRange();
- bitField0_ = (bitField0_ & ~0x00000040);
+ public Builder clearStatusMessage() {
+ statusMessage_ = getDefaultInstance().getStatusMessage();
+ bitField0_ = (bitField0_ & ~0x00002000);
onChanged();
return this;
}
@@ -4786,224 +6312,325 @@ public Builder clearReservedIpRange() {
*
*
*
- * Optional. For DIRECT_PEERING mode, the CIDR range of internal addresses
- * that are reserved for this instance. Range must
- * be unique and non-overlapping with existing subnets in an authorized
- * network. For PRIVATE_SERVICE_ACCESS mode, the name of one allocated IP
- * address ranges associated with this private service access connection.
- * If not provided, the service will choose an unused /29 block, for
- * example, 10.0.0.0/29 or 192.168.0.0/29. For READ_REPLICAS_ENABLED
- * the default block size is /28.
+ * Output only. Additional information about the current status of this
+ * instance, if available.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @param value The bytes for reservedIpRange to set.
+ * @param value The bytes for statusMessage to set.
* @return This builder for chaining.
*/
- public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) {
+ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- reservedIpRange_ = value;
- bitField0_ |= 0x00000040;
+ statusMessage_ = value;
+ bitField0_ |= 0x00002000;
onChanged();
return this;
}
- private java.lang.Object secondaryIpRange_ = "";
+ private com.google.protobuf.MapField redisConfigs_;
+
+ private com.google.protobuf.MapField
+ internalGetRedisConfigs() {
+ if (redisConfigs_ == null) {
+ return com.google.protobuf.MapField.emptyMapField(
+ RedisConfigsDefaultEntryHolder.defaultEntry);
+ }
+ return redisConfigs_;
+ }
+
+ private com.google.protobuf.MapField
+ internalGetMutableRedisConfigs() {
+ if (redisConfigs_ == null) {
+ redisConfigs_ =
+ com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry);
+ }
+ if (!redisConfigs_.isMutable()) {
+ redisConfigs_ = redisConfigs_.copy();
+ }
+ bitField0_ |= 0x00004000;
+ onChanged();
+ return redisConfigs_;
+ }
+
+ public int getRedisConfigsCount() {
+ return internalGetRedisConfigs().getMap().size();
+ }
/**
*
*
*
- * Optional. Additional IP range for node placement. Required when enabling read
- * replicas on an existing instance. For DIRECT_PEERING mode value must be a
- * CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value
- * must be the name of an allocated address range associated with the private
- * service access connection, or "auto".
+ * Optional. Redis configuration parameters, according to
+ * http://redis.io/topics/config. Currently, the only supported parameters
+ * are:
+ * Redis version 3.2 and newer:
+ * * maxmemory-policy
+ * * notify-keyspace-events
+ * Redis version 4.0 and newer:
+ * * activedefrag
+ * * lfu-decay-time
+ * * lfu-log-factor
+ * * maxmemory-gb
+ * Redis version 5.0 and newer:
+ * * stream-node-max-bytes
+ * * stream-node-max-entries
*
*
- * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The secondaryIpRange.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public java.lang.String getSecondaryIpRange() {
- java.lang.Object ref = secondaryIpRange_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- secondaryIpRange_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
+ @java.lang.Override
+ public boolean containsRedisConfigs(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
}
+ return internalGetRedisConfigs().getMap().containsKey(key);
+ }
+ /** Use {@link #getRedisConfigsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getRedisConfigs() {
+ return getRedisConfigsMap();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Redis configuration parameters, according to
+ * http://redis.io/topics/config. Currently, the only supported parameters
+ * are:
+ * Redis version 3.2 and newer:
+ * * maxmemory-policy
+ * * notify-keyspace-events
+ * Redis version 4.0 and newer:
+ * * activedefrag
+ * * lfu-decay-time
+ * * lfu-log-factor
+ * * maxmemory-gb
+ * Redis version 5.0 and newer:
+ * * stream-node-max-bytes
+ * * stream-node-max-entries
+ *
+ *
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map getRedisConfigsMap() {
+ return internalGetRedisConfigs().getMap();
}
/**
*
*
*
- * Optional. Additional IP range for node placement. Required when enabling read
- * replicas on an existing instance. For DIRECT_PEERING mode value must be a
- * CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value
- * must be the name of an allocated address range associated with the private
- * service access connection, or "auto".
+ * Optional. Redis configuration parameters, according to
+ * http://redis.io/topics/config. Currently, the only supported parameters
+ * are:
+ * Redis version 3.2 and newer:
+ * * maxmemory-policy
+ * * notify-keyspace-events
+ * Redis version 4.0 and newer:
+ * * activedefrag
+ * * lfu-decay-time
+ * * lfu-log-factor
+ * * maxmemory-gb
+ * Redis version 5.0 and newer:
+ * * stream-node-max-bytes
+ * * stream-node-max-entries
*
*
- * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for secondaryIpRange.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public com.google.protobuf.ByteString getSecondaryIpRangeBytes() {
- java.lang.Object ref = secondaryIpRange_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- secondaryIpRange_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
+ @java.lang.Override
+ public /* nullable */ java.lang.String getRedisConfigsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
}
+ java.util.Map map = internalGetRedisConfigs().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
- * Optional. Additional IP range for node placement. Required when enabling read
- * replicas on an existing instance. For DIRECT_PEERING mode value must be a
- * CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value
- * must be the name of an allocated address range associated with the private
- * service access connection, or "auto".
+ * Optional. Redis configuration parameters, according to
+ * http://redis.io/topics/config. Currently, the only supported parameters
+ * are:
+ * Redis version 3.2 and newer:
+ * * maxmemory-policy
+ * * notify-keyspace-events
+ * Redis version 4.0 and newer:
+ * * activedefrag
+ * * lfu-decay-time
+ * * lfu-log-factor
+ * * maxmemory-gb
+ * Redis version 5.0 and newer:
+ * * stream-node-max-bytes
+ * * stream-node-max-entries
*
*
- * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The secondaryIpRange to set.
- * @return This builder for chaining.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setSecondaryIpRange(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ @java.lang.Override
+ public java.lang.String getRedisConfigsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
}
- secondaryIpRange_ = value;
- bitField0_ |= 0x00000080;
- onChanged();
+ java.util.Map map = internalGetRedisConfigs().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearRedisConfigs() {
+ bitField0_ = (bitField0_ & ~0x00004000);
+ internalGetMutableRedisConfigs().getMutableMap().clear();
return this;
}
/**
*
*
*
- * Optional. Additional IP range for node placement. Required when enabling read
- * replicas on an existing instance. For DIRECT_PEERING mode value must be a
- * CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value
- * must be the name of an allocated address range associated with the private
- * service access connection, or "auto".
+ * Optional. Redis configuration parameters, according to
+ * http://redis.io/topics/config. Currently, the only supported parameters
+ * are:
+ * Redis version 3.2 and newer:
+ * * maxmemory-policy
+ * * notify-keyspace-events
+ * Redis version 4.0 and newer:
+ * * activedefrag
+ * * lfu-decay-time
+ * * lfu-log-factor
+ * * maxmemory-gb
+ * Redis version 5.0 and newer:
+ * * stream-node-max-bytes
+ * * stream-node-max-entries
*
*
- * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return This builder for chaining.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder clearSecondaryIpRange() {
- secondaryIpRange_ = getDefaultInstance().getSecondaryIpRange();
- bitField0_ = (bitField0_ & ~0x00000080);
- onChanged();
+ public Builder removeRedisConfigs(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableRedisConfigs().getMutableMap().remove(key);
return this;
}
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map getMutableRedisConfigs() {
+ bitField0_ |= 0x00004000;
+ return internalGetMutableRedisConfigs().getMutableMap();
+ }
/**
*
*
*
- * Optional. Additional IP range for node placement. Required when enabling read
- * replicas on an existing instance. For DIRECT_PEERING mode value must be a
- * CIDR range of size /28, or "auto". For PRIVATE_SERVICE_ACCESS mode value
- * must be the name of an allocated address range associated with the private
- * service access connection, or "auto".
+ * Optional. Redis configuration parameters, according to
+ * http://redis.io/topics/config. Currently, the only supported parameters
+ * are:
+ * Redis version 3.2 and newer:
+ * * maxmemory-policy
+ * * notify-keyspace-events
+ * Redis version 4.0 and newer:
+ * * activedefrag
+ * * lfu-decay-time
+ * * lfu-log-factor
+ * * maxmemory-gb
+ * Redis version 5.0 and newer:
+ * * stream-node-max-bytes
+ * * stream-node-max-entries
*
*
- * string secondary_ip_range = 30 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The bytes for secondaryIpRange to set.
- * @return This builder for chaining.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setSecondaryIpRangeBytes(com.google.protobuf.ByteString value) {
+ public Builder putRedisConfigs(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
if (value == null) {
- throw new NullPointerException();
+ throw new NullPointerException("map value");
}
- checkByteStringIsUtf8(value);
- secondaryIpRange_ = value;
- bitField0_ |= 0x00000080;
- onChanged();
+ internalGetMutableRedisConfigs().getMutableMap().put(key, value);
+ bitField0_ |= 0x00004000;
return this;
}
-
- private java.lang.Object host_ = "";
/**
*
*
*
- * Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * Optional. Redis configuration parameters, according to
+ * http://redis.io/topics/config. Currently, the only supported parameters
+ * are:
+ * Redis version 3.2 and newer:
+ * * maxmemory-policy
+ * * notify-keyspace-events
+ * Redis version 4.0 and newer:
+ * * activedefrag
+ * * lfu-decay-time
+ * * lfu-log-factor
+ * * maxmemory-gb
+ * Redis version 5.0 and newer:
+ * * stream-node-max-bytes
+ * * stream-node-max-entries
*
*
- * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The host.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public java.lang.String getHost() {
- java.lang.Object ref = host_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- host_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
+ public Builder putAllRedisConfigs(java.util.Map values) {
+ internalGetMutableRedisConfigs().getMutableMap().putAll(values);
+ bitField0_ |= 0x00004000;
+ return this;
}
+
+ private int tier_ = 0;
/**
*
*
*
- * Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * Required. The service tier of the instance.
*
*
- * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @return The bytes for host.
+ * @return The enum numeric value on the wire for tier.
*/
- public com.google.protobuf.ByteString getHostBytes() {
- java.lang.Object ref = host_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- host_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ @java.lang.Override
+ public int getTierValue() {
+ return tier_;
}
/**
*
*
*
- * Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * Required. The service tier of the instance.
*
*
- * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @param value The host to set.
+ * @param value The enum numeric value on the wire for tier to set.
* @return This builder for chaining.
*/
- public Builder setHost(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
- host_ = value;
- bitField0_ |= 0x00000100;
+ public Builder setTierValue(int value) {
+ tier_ = value;
+ bitField0_ |= 0x00008000;
onChanged();
return this;
}
@@ -5011,17 +6638,41 @@ 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.
+ * Required. The service tier of the instance.
*
*
- * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @return This builder for chaining.
+ * @return The tier.
*/
- public Builder clearHost() {
- host_ = getDefaultInstance().getHost();
- bitField0_ = (bitField0_ & ~0x00000100);
+ @java.lang.Override
+ public com.google.cloud.redis.v1.Instance.Tier getTier() {
+ com.google.cloud.redis.v1.Instance.Tier result =
+ com.google.cloud.redis.v1.Instance.Tier.forNumber(tier_);
+ return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result;
+ }
+ /**
+ *
+ *
+ *
+ * Required. The service tier of the instance.
+ *
+ *
+ *
+ * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
+ *
+ * @param value The tier to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTier(com.google.cloud.redis.v1.Instance.Tier value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ bitField0_ |= 0x00008000;
+ tier_ = value.getNumber();
onChanged();
return this;
}
@@ -5029,58 +6680,54 @@ public Builder clearHost() {
*
*
*
- * Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * Required. The service tier of the instance.
*
*
- * string host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @param value The bytes for host to set.
* @return This builder for chaining.
*/
- public Builder setHostBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
- host_ = value;
- bitField0_ |= 0x00000100;
+ public Builder clearTier() {
+ bitField0_ = (bitField0_ & ~0x00008000);
+ tier_ = 0;
onChanged();
return this;
}
- private int port_;
+ private int memorySizeGb_;
/**
*
*
*
- * Output only. The port number of the exposed Redis endpoint.
+ * Required. Redis memory size in GiB.
*
*
- * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
*
- * @return The port.
+ * @return The memorySizeGb.
*/
@java.lang.Override
- public int getPort() {
- return port_;
+ public int getMemorySizeGb() {
+ return memorySizeGb_;
}
/**
*
*
*
- * Output only. The port number of the exposed Redis endpoint.
+ * Required. Redis memory size in GiB.
*
*
- * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
*
- * @param value The port to set.
+ * @param value The memorySizeGb to set.
* @return This builder for chaining.
*/
- public Builder setPort(int value) {
+ public Builder setMemorySizeGb(int value) {
- port_ = value;
- bitField0_ |= 0x00000200;
+ memorySizeGb_ = value;
+ bitField0_ |= 0x00010000;
onChanged();
return this;
}
@@ -5088,40 +6735,41 @@ public Builder setPort(int value) {
*
*
*
- * Output only. The port number of the exposed Redis endpoint.
+ * Required. Redis memory size in GiB.
*
*
- * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
*
* @return This builder for chaining.
*/
- public Builder clearPort() {
- bitField0_ = (bitField0_ & ~0x00000200);
- port_ = 0;
+ public Builder clearMemorySizeGb() {
+ bitField0_ = (bitField0_ & ~0x00010000);
+ memorySizeGb_ = 0;
onChanged();
return this;
}
- private java.lang.Object currentLocationId_ = "";
+ private java.lang.Object authorizedNetwork_ = "";
/**
*
*
*
- * 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.
+ * Optional. The full name of the Google Compute Engine
+ * [network](https://cloud.google.com/vpc/docs/vpc) to which the
+ * instance is connected. If left unspecified, the `default` network
+ * will be used.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The currentLocationId.
+ * @return The authorizedNetwork.
*/
- public java.lang.String getCurrentLocationId() {
- java.lang.Object ref = currentLocationId_;
+ public java.lang.String getAuthorizedNetwork() {
+ java.lang.Object ref = authorizedNetwork_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
- currentLocationId_ = s;
+ authorizedNetwork_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -5131,21 +6779,22 @@ public java.lang.String getCurrentLocationId() {
*
*
*
- * Output only. The current zone where the Redis primary node is located. In
- * basic tier, this will always be the same as [location_id]. In
- * standard tier, this can be the zone of any node in the instance.
+ * Optional. The full name of the Google Compute Engine
+ * [network](https://cloud.google.com/vpc/docs/vpc) to which the
+ * instance is connected. If left unspecified, the `default` network
+ * will be used.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for currentLocationId.
+ * @return The bytes for authorizedNetwork.
*/
- public com.google.protobuf.ByteString getCurrentLocationIdBytes() {
- java.lang.Object ref = currentLocationId_;
+ public com.google.protobuf.ByteString getAuthorizedNetworkBytes() {
+ java.lang.Object ref = authorizedNetwork_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- currentLocationId_ = b;
+ authorizedNetwork_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -5155,22 +6804,23 @@ public com.google.protobuf.ByteString getCurrentLocationIdBytes() {
*
*
*
- * Output only. The current zone where the Redis primary node is located. In
- * basic tier, this will always be the same as [location_id]. In
- * standard tier, this can be the zone of any node in the instance.
+ * Optional. The full name of the Google Compute Engine
+ * [network](https://cloud.google.com/vpc/docs/vpc) to which the
+ * instance is connected. If left unspecified, the `default` network
+ * will be used.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The currentLocationId to set.
+ * @param value The authorizedNetwork to set.
* @return This builder for chaining.
*/
- public Builder setCurrentLocationId(java.lang.String value) {
+ public Builder setAuthorizedNetwork(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- currentLocationId_ = value;
- bitField0_ |= 0x00000400;
+ authorizedNetwork_ = value;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
@@ -5178,18 +6828,19 @@ public Builder setCurrentLocationId(java.lang.String value) {
*
*
*
- * Output only. The current zone where the Redis primary node is located. In
- * basic tier, this will always be the same as [location_id]. In
- * standard tier, this can be the zone of any node in the instance.
+ * Optional. The full name of the Google Compute Engine
+ * [network](https://cloud.google.com/vpc/docs/vpc) to which the
+ * instance is connected. If left unspecified, the `default` network
+ * will be used.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
- public Builder clearCurrentLocationId() {
- currentLocationId_ = getDefaultInstance().getCurrentLocationId();
- bitField0_ = (bitField0_ & ~0x00000400);
+ public Builder clearAuthorizedNetwork() {
+ authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork();
+ bitField0_ = (bitField0_ & ~0x00020000);
onChanged();
return this;
}
@@ -5197,161 +6848,106 @@ public Builder clearCurrentLocationId() {
*
*
*
- * Output only. The current zone where the Redis primary node is located. In
- * basic tier, this will always be the same as [location_id]. In
- * standard tier, this can be the zone of any node in the instance.
+ * Optional. The full name of the Google Compute Engine
+ * [network](https://cloud.google.com/vpc/docs/vpc) to which the
+ * instance is connected. If left unspecified, the `default` network
+ * will be used.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The bytes for currentLocationId to set.
+ * @param value The bytes for authorizedNetwork to set.
* @return This builder for chaining.
*/
- public Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value) {
+ public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- currentLocationId_ = value;
- bitField0_ |= 0x00000400;
+ authorizedNetwork_ = value;
+ bitField0_ |= 0x00020000;
onChanged();
return this;
}
- private com.google.protobuf.Timestamp createTime_;
- private com.google.protobuf.SingleFieldBuilderV3<
- com.google.protobuf.Timestamp,
- com.google.protobuf.Timestamp.Builder,
- com.google.protobuf.TimestampOrBuilder>
- createTimeBuilder_;
- /**
- *
- *
- *
- * Output only. The time the instance was created.
- *
- *
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- *
- * @return Whether the createTime field is set.
- */
- public boolean hasCreateTime() {
- return ((bitField0_ & 0x00000800) != 0);
- }
+ private java.lang.Object persistenceIamIdentity_ = "";
/**
*
*
*
- * Output only. The time the instance was created.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return The createTime.
- */
- public com.google.protobuf.Timestamp getCreateTime() {
- if (createTimeBuilder_ == null) {
- return createTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : createTime_;
- } else {
- return createTimeBuilder_.getMessage();
- }
- }
- /**
- *
- *
- *
- * Output only. The time the instance was created.
- *
- *
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * @return The persistenceIamIdentity.
*/
- public Builder setCreateTime(com.google.protobuf.Timestamp value) {
- if (createTimeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- createTime_ = value;
+ public java.lang.String getPersistenceIamIdentity() {
+ java.lang.Object ref = persistenceIamIdentity_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ persistenceIamIdentity_ = s;
+ return s;
} else {
- createTimeBuilder_.setMessage(value);
+ return (java.lang.String) ref;
}
- bitField0_ |= 0x00000800;
- onChanged();
- return this;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- */
- public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (createTimeBuilder_ == null) {
- createTime_ = builderForValue.build();
- } else {
- createTimeBuilder_.setMessage(builderForValue.build());
- }
- bitField0_ |= 0x00000800;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Output only. The time the instance was created.
- *
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * @return The bytes for persistenceIamIdentity.
*/
- public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
- if (createTimeBuilder_ == null) {
- if (((bitField0_ & 0x00000800) != 0)
- && createTime_ != null
- && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
- getCreateTimeBuilder().mergeFrom(value);
- } else {
- createTime_ = value;
- }
+ public com.google.protobuf.ByteString getPersistenceIamIdentityBytes() {
+ java.lang.Object ref = persistenceIamIdentity_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ persistenceIamIdentity_ = b;
+ return b;
} else {
- createTimeBuilder_.mergeFrom(value);
+ return (com.google.protobuf.ByteString) ref;
}
- bitField0_ |= 0x00000800;
- onChanged();
- return this;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @param value The persistenceIamIdentity to set.
+ * @return This builder for chaining.
*/
- public Builder clearCreateTime() {
- bitField0_ = (bitField0_ & ~0x00000800);
- createTime_ = null;
- if (createTimeBuilder_ != null) {
- createTimeBuilder_.dispose();
- createTimeBuilder_ = null;
+ public Builder setPersistenceIamIdentity(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ persistenceIamIdentity_ = value;
+ bitField0_ |= 0x00040000;
onChanged();
return this;
}
@@ -5359,101 +6955,89 @@ public Builder clearCreateTime() {
*
*
*
- * Output only. The time the instance was created.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
+ *
+ * @return This builder for chaining.
*/
- public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
- bitField0_ |= 0x00000800;
+ public Builder clearPersistenceIamIdentity() {
+ persistenceIamIdentity_ = getDefaultInstance().getPersistenceIamIdentity();
+ bitField0_ = (bitField0_ & ~0x00040000);
onChanged();
- return getCreateTimeFieldBuilder().getBuilder();
+ return this;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *