Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); + * } + * }+ * + * @param name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstanceAuthString getInstanceAuthString(InstanceName name) { + GetInstanceAuthStringRequest request = + GetInstanceAuthStringRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getInstanceAuthString(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response + * will be empty. This information is not included in the details returned to GetInstance. + * + *
Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * InstanceAuthString response = cloudRedisClient.getInstanceAuthString(name); + * } + * }+ * + * @param name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` + * refers to a GCP region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstanceAuthString getInstanceAuthString(String name) { + GetInstanceAuthStringRequest request = + GetInstanceAuthStringRequest.newBuilder().setName(name).build(); + return getInstanceAuthString(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response + * will be empty. This information is not included in the details returned to GetInstance. + * + *
Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * GetInstanceAuthStringRequest request = + * GetInstanceAuthStringRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .build(); + * InstanceAuthString response = cloudRedisClient.getInstanceAuthString(request); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final InstanceAuthString getInstanceAuthString(GetInstanceAuthStringRequest request) { + return getInstanceAuthStringCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the instance the response + * will be empty. This information is not included in the details returned to GetInstance. + * + *
Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * GetInstanceAuthStringRequest request = + * GetInstanceAuthStringRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * cloudRedisClient.getInstanceAuthStringCallable().futureCall(request); + * // Do something. + * InstanceAuthString response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); + * RescheduleMaintenanceRequest.RescheduleType rescheduleType = + * RescheduleMaintenanceRequest.RescheduleType.forNumber(0); + * Timestamp scheduleTime = Timestamp.newBuilder().build(); + * Instance response = + * cloudRedisClient.rescheduleMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + * } + * }+ * + * @param name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` + * refers to a GCP region. + * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time + * as well. + * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if + * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); + * RescheduleMaintenanceRequest.RescheduleType rescheduleType = + * RescheduleMaintenanceRequest.RescheduleType.forNumber(0); + * Timestamp scheduleTime = Timestamp.newBuilder().build(); + * Instance response = + * cloudRedisClient.rescheduleMaintenanceAsync(name, rescheduleType, scheduleTime).get(); + * } + * }+ * + * @param name Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` where `location_id` + * refers to a GCP region. + * @param rescheduleType Required. If reschedule type is SPECIFIC_TIME, must set up schedule_time + * as well. + * @param scheduleTime Optional. Timestamp when the maintenance shall be rescheduled to if + * reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example `2012-11-15T16:19:00.094Z`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * RescheduleMaintenanceRequest request = + * RescheduleMaintenanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setScheduleTime(Timestamp.newBuilder().build()) + * .build(); + * Instance response = cloudRedisClient.rescheduleMaintenanceAsync(request).get(); + * } + * }+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture
Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * RescheduleMaintenanceRequest request = + * RescheduleMaintenanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setScheduleTime(Timestamp.newBuilder().build()) + * .build(); + * OperationFuture+ */ + public final OperationCallablefuture = + * cloudRedisClient.rescheduleMaintenanceOperationCallable().futureCall(request); + * // Do something. + * Instance response = future.get(); + * } + * }
Sample code: + * + *
{@code + * try (CloudRedisClient cloudRedisClient = CloudRedisClient.create()) { + * RescheduleMaintenanceRequest request = + * RescheduleMaintenanceRequest.newBuilder() + * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) + * .setScheduleTime(Timestamp.newBuilder().build()) + * .build(); + * ApiFuture+ */ + public final UnaryCallablefuture = + * cloudRedisClient.rescheduleMaintenanceCallable().futureCall(request); + * // Do something. + * Operation response = future.get(); + * } + * }
+ * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the + * instance the response will be empty. This information is not included in + * the details returned to GetInstance. + *+ */ + public void getInstanceAuthString( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver
+ * Reschedule maintenance for a given instance in a given project and + * location. + *+ */ + public void rescheduleMaintenance( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, + io.grpc.stub.StreamObserver
+ * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the + * instance the response will be empty. This information is not included in + * the details returned to GetInstance. + *+ */ + public void getInstanceAuthString( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request, + io.grpc.stub.StreamObserver
+ * Reschedule maintenance for a given instance in a given project and + * location. + *+ */ + public void rescheduleMaintenance( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request, + io.grpc.stub.StreamObserver
+ * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the + * instance the response will be empty. This information is not included in + * the details returned to GetInstance. + *+ */ + public com.google.cloud.redis.v1beta1.InstanceAuthString getInstanceAuthString( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetInstanceAuthStringMethod(), getCallOptions(), request); + } + /** * * @@ -1084,6 +1277,20 @@ public com.google.longrunning.Operation deleteInstance( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteInstanceMethod(), getCallOptions(), request); } + + /** + * + * + *
+ * Reschedule maintenance for a given instance in a given project and + * location. + *+ */ + public com.google.longrunning.Operation rescheduleMaintenance( + com.google.cloud.redis.v1beta1.RescheduleMaintenanceRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRescheduleMaintenanceMethod(), getCallOptions(), request); + } } /** @@ -1148,6 +1355,22 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
+ * Gets the AUTH string for a Redis instance. If AUTH is not enabled for the + * instance the response will be empty. This information is not included in + * the details returned to GetInstance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.redis.v1beta1.InstanceAuthString> + getInstanceAuthString(com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetInstanceAuthStringMethod(), getCallOptions()), request); + } + /** * * @@ -1260,17 +1483,33 @@ protected CloudRedisFutureStub build(io.grpc.Channel channel, io.grpc.CallOption return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteInstanceMethod(), getCallOptions()), request); } + + /** + * + * + *
+ * Reschedule maintenance for a given instance in a given project and + * location. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
- * 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} @@ -494,8 +493,7 @@ 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 5c282b49..ef258792 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,8 +22,7 @@ * * *
- * 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} @@ -332,8 +331,7 @@ 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 86e32a42..e644b1b7 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,8 +22,7 @@ * * *
- * 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} @@ -572,8 +571,7 @@ 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/GetInstanceAuthStringRequest.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java new file mode 100644 index 00000000..ad7ce229 --- /dev/null +++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/GetInstanceAuthStringRequest.java @@ -0,0 +1,665 @@ +/* + * 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; + +/** + * + * + *
+ * Request for [GetInstanceAuthString][google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString]. + *+ * + * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceAuthStringRequest} + */ +public final class GetInstanceAuthStringRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) + GetInstanceAuthStringRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetInstanceAuthStringRequest.newBuilder() to construct. + private GetInstanceAuthStringRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private GetInstanceAuthStringRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetInstanceAuthStringRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetInstanceAuthStringRequest( + 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(); + + name_ = 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_GetInstanceAuthStringRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto + .internal_static_google_cloud_redis_v1beta1_GetInstanceAuthStringRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.class, + com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+ * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ 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();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = 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(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ 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(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ 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.GetInstanceAuthStringRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest other =
+ (com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest) obj;
+
+ if (!getName().equals(other.getName())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest 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.GetInstanceAuthStringRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest 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.GetInstanceAuthStringRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest 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.GetInstanceAuthStringRequest parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest 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.GetInstanceAuthStringRequest parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest 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.GetInstanceAuthStringRequest 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.GetInstanceAuthStringRequest 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.GetInstanceAuthStringRequest 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;
+ }
+ /**
+ *
+ *
+ * + * Request for [GetInstanceAuthString][google.cloud.redis.v1beta1.CloudRedis.GetInstanceAuthString]. + *+ * + * Protobuf type {@code google.cloud.redis.v1beta1.GetInstanceAuthStringRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = 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.GetInstanceAuthStringRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.GetInstanceAuthStringRequest)
+ private static final com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest();
+ }
+
+ public static com.google.cloud.redis.v1beta1.GetInstanceAuthStringRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Required. Redis instance resource name using the form: + * `projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * where `location_id` refers to a GCP region. + *+ * + *
+ * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
+ *
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+}
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 dda69851..d4f11a48 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,8 @@ private Instance() {
authorizedNetwork_ = "";
persistenceIamIdentity_ = "";
connectMode_ = 0;
+ serverCaCerts_ = java.util.Collections.emptyList();
+ transitEncryptionMode_ = 0;
nodes_ = java.util.Collections.emptyList();
readEndpoint_ = "";
readReplicasMode_ = 0;
@@ -236,6 +238,63 @@ private Instance(
int rawValue = input.readEnum();
connectMode_ = rawValue;
+ break;
+ }
+ case 184:
+ {
+ authEnabled_ = input.readBool();
+ break;
+ }
+ case 202:
+ {
+ if (!((mutable_bitField0_ & 0x00000004) != 0)) {
+ serverCaCerts_ =
+ new java.util.ArrayList+ * Available TLS modes. + *+ * + * Protobuf enum {@code google.cloud.redis.v1beta1.Instance.TransitEncryptionMode} + */ + public enum TransitEncryptionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+ * Not set. + *+ * + *
TRANSIT_ENCRYPTION_MODE_UNSPECIFIED = 0;
+ */
+ TRANSIT_ENCRYPTION_MODE_UNSPECIFIED(0),
+ /**
+ *
+ *
+ * + * Client to Server traffic encryption enabled with server authentication. + *+ * + *
SERVER_AUTHENTICATION = 1;
+ */
+ SERVER_AUTHENTICATION(1),
+ /**
+ *
+ *
+ * + * TLS is disabled for the instance. + *+ * + *
DISABLED = 2;
+ */
+ DISABLED(2),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ *
+ *
+ * + * Not set. + *+ * + *
TRANSIT_ENCRYPTION_MODE_UNSPECIFIED = 0;
+ */
+ public static final int TRANSIT_ENCRYPTION_MODE_UNSPECIFIED_VALUE = 0;
+ /**
+ *
+ *
+ * + * Client to Server traffic encryption enabled with server authentication. + *+ * + *
SERVER_AUTHENTICATION = 1;
+ */
+ public static final int SERVER_AUTHENTICATION_VALUE = 1;
+ /**
+ *
+ *
+ * + * TLS is disabled for the instance. + *+ * + *
DISABLED = 2;
+ */
+ public static final int DISABLED_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 TransitEncryptionMode 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 TransitEncryptionMode forNumber(int value) {
+ switch (value) {
+ case 0:
+ return TRANSIT_ENCRYPTION_MODE_UNSPECIFIED;
+ case 1:
+ return SERVER_AUTHENTICATION;
+ case 2:
+ return DISABLED;
+ default:
+ return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap- * If not set, Memorystore for Redis backend will pick the mode based on - * other fields in the request. + * If not set, Memorystore Redis backend will default to + * READ_REPLICAS_DISABLED. ** *
READ_REPLICAS_MODE_UNSPECIFIED = 0;
@@ -971,7 +1209,7 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
*
* * If enabled, read endpoint will be provided and the instance can scale - * up and down the number of replicas. + * up and down the number of replicas. Not valid for basic tier. ** *
READ_REPLICAS_ENABLED = 2;
@@ -984,8 +1222,8 @@ 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. + * If not set, Memorystore Redis backend will default to + * READ_REPLICAS_DISABLED. ** *
READ_REPLICAS_MODE_UNSPECIFIED = 0;
@@ -1007,7 +1245,7 @@ public enum ReadReplicasMode implements com.google.protobuf.ProtocolMessageEnum
*
* * If enabled, read endpoint will be provided and the instance can scale - * up and down the number of replicas. + * up and down the number of replicas. Not valid for basic tier. ** *
READ_REPLICAS_ENABLED = 2;
@@ -1074,7 +1312,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
- return com.google.cloud.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(3);
+ return com.google.cloud.redis.v1beta1.Instance.getDescriptor().getEnumTypes().get(4);
}
private static final ReadReplicasMode[] VALUES = values();
@@ -1111,10 +1349,8 @@ private ReadReplicasMode(int 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];
@@ -1143,10 +1379,8 @@ 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];
@@ -2184,203 +2418,467 @@ public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() {
: result;
}
- public static final int REPLICA_COUNT_FIELD_NUMBER = 31;
- private int replicaCount_;
+ public static final int AUTH_ENABLED_FIELD_NUMBER = 23;
+ private boolean authEnabled_;
/**
*
*
* - * 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. + * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to + * "true" AUTH is enabled on the instance. Default value is "false" meaning + * AUTH is disabled. ** - *
int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
+ * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The replicaCount.
+ * @return The authEnabled.
*/
@java.lang.Override
- public int getReplicaCount() {
- return replicaCount_;
+ public boolean getAuthEnabled() {
+ return authEnabled_;
}
- public static final int NODES_FIELD_NUMBER = 32;
- private java.util.List- * Output only. Info per node. + * Output only. List of server CA certificates for the instance. ** *
- * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
- public java.util.List- * Output only. Info per node. + * Output only. List of server CA certificates for the instance. ** *
- * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
- public java.util.List extends com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>
- getNodesOrBuilderList() {
- return nodes_;
+ public java.util.List extends com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>
+ getServerCaCertsOrBuilderList() {
+ return serverCaCerts_;
}
/**
*
*
* - * Output only. Info per node. + * Output only. List of server CA certificates for the instance. ** *
- * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
- public int getNodesCount() {
- return nodes_.size();
+ public int getServerCaCertsCount() {
+ return serverCaCerts_.size();
}
/**
*
*
* - * Output only. Info per node. + * Output only. List of server CA certificates for the instance. ** *
- * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
- public com.google.cloud.redis.v1beta1.NodeInfo getNodes(int index) {
- return nodes_.get(index);
+ public com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index) {
+ return serverCaCerts_.get(index);
}
/**
*
*
* - * Output only. Info per node. + * Output only. List of server CA certificates for the instance. ** *
- * repeated .google.cloud.redis.v1beta1.NodeInfo nodes = 32 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
@java.lang.Override
- public com.google.cloud.redis.v1beta1.NodeInfoOrBuilder getNodesOrBuilder(int index) {
- return nodes_.get(index);
+ public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(
+ int index) {
+ return serverCaCerts_.get(index);
}
- public static final int READ_ENDPOINT_FIELD_NUMBER = 33;
- private volatile java.lang.Object readEndpoint_;
+ public static final int TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER = 26;
+ private int transitEncryptionMode_;
/**
*
*
* - * 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'. + * Optional. The TLS mode of the Redis instance. + * If not provided, TLS is disabled for the instance. ** - *
string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
- * @return The readEndpoint.
+ * @return The enum numeric value on the wire for transitEncryptionMode.
*/
@java.lang.Override
- 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;
- }
+ public int getTransitEncryptionModeValue() {
+ return transitEncryptionMode_;
}
/**
*
*
* - * 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'. + * Optional. The TLS mode of the Redis instance. + * If not provided, TLS is disabled for the instance. ** - *
string read_endpoint = 33 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
- * @return The bytes for readEndpoint.
+ * @return The transitEncryptionMode.
*/
@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 com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result =
+ com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf(
+ transitEncryptionMode_);
+ return result == null
+ ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED
+ : result;
}
- public static final int READ_ENDPOINT_PORT_FIELD_NUMBER = 34;
- private int readEndpointPort_;
+ public static final int MAINTENANCE_POLICY_FIELD_NUMBER = 27;
+ private com.google.cloud.redis.v1beta1.MaintenancePolicy maintenancePolicy_;
/**
*
*
* - * Output only. The port number of the exposed readonly redis - * endpoint. Standard tier only. Write requests should target 'port'. + * Optional. The maintenance policy for the instance. If not provided, + * maintenance events can be performed at any time. ** - *
int32 read_endpoint_port = 34 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
- * @return The readEndpointPort.
+ * @return Whether the maintenancePolicy field is set.
*/
@java.lang.Override
- public int getReadEndpointPort() {
- return readEndpointPort_;
+ public boolean hasMaintenancePolicy() {
+ return maintenancePolicy_ != null;
}
-
- public static final int READ_REPLICAS_MODE_FIELD_NUMBER = 35;
- private int readReplicasMode_;
/**
*
*
* - * Optional. Read replica mode. + * Optional. The maintenance policy for the instance. If not provided, + * maintenance events can be performed at any time. ** *
- * .google.cloud.redis.v1beta1.Instance.ReadReplicasMode read_replicas_mode = 35 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The enum numeric value on the wire for readReplicasMode.
+ * @return The maintenancePolicy.
*/
@java.lang.Override
- public int getReadReplicasModeValue() {
+ public com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy() {
+ return maintenancePolicy_ == null
+ ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance()
+ : maintenancePolicy_;
+ }
+ /**
+ *
+ *
+ * + * Optional. The maintenance policy for the instance. If not provided, + * maintenance events can be performed at any time. + *+ * + *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder() {
+ return getMaintenancePolicy();
+ }
+
+ public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER = 28;
+ private com.google.cloud.redis.v1beta1.MaintenanceSchedule maintenanceSchedule_;
+ /**
+ *
+ *
+ * + * Output only. Date and time of upcoming maintenance events which have been + * scheduled. + *+ * + *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the maintenanceSchedule field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaintenanceSchedule() {
+ return maintenanceSchedule_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. Date and time of upcoming maintenance events which have been + * scheduled. + *+ * + *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The maintenanceSchedule.
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule() {
+ return maintenanceSchedule_ == null
+ ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance()
+ : maintenanceSchedule_;
+ }
+ /**
+ *
+ *
+ * + * Output only. Date and time of upcoming maintenance events which have been + * scheduled. + *+ * + *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder
+ getMaintenanceScheduleOrBuilder() {
+ return getMaintenanceSchedule();
+ }
+
+ public static final int REPLICA_COUNT_FIELD_NUMBER = 31;
+ private int replicaCount_;
+ /**
+ *
+ *
+ * + * Optional. The number of replica nodes. The valid range for the Standard Tier with + * read replicas enabled is [1-5] and defaults to 2. If read replicas are not + * enabled for a Standard Tier instance, the only valid value is 1 and the + * default is 1. The valid value for basic tier is 0 and the default is also + * 0. + *+ * + *
int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The replicaCount.
+ */
+ @java.lang.Override
+ public int getReplicaCount() {
+ return replicaCount_;
+ }
+
+ 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 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * 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. Can only be specified when trying to create the + * instance. + *+ * + *
+ * .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. + * Optional. Read replica mode. Can only be specified when trying to create the + * instance. ** *
@@ -2399,19 +2897,73 @@ public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasM
: result;
}
- private byte memoizedIsInitialized = -1;
-
+ public static final int PERSISTENCE_CONFIG_FIELD_NUMBER = 37;
+ private com.google.cloud.redis.v1beta1.PersistenceConfig persistenceConfig_;
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the persistenceConfig field is set.
+ */
@java.lang.Override
- public final boolean isInitialized() {
- byte isInitialized = memoizedIsInitialized;
- if (isInitialized == 1) return true;
- if (isInitialized == 0) return false;
-
- memoizedIsInitialized = 1;
- return true;
+ public boolean hasPersistenceConfig() {
+ return persistenceConfig_ != null;
}
-
- @java.lang.Override
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The persistenceConfig.
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig() {
+ return persistenceConfig_ == null
+ ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance()
+ : persistenceConfig_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceConfigOrBuilder() {
+ return getPersistenceConfig();
+ }
+
+ 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_);
@@ -2470,6 +3022,24 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(22, connectMode_);
}
+ if (authEnabled_ != false) {
+ output.writeBool(23, authEnabled_);
+ }
+ for (int i = 0; i < serverCaCerts_.size(); i++) {
+ output.writeMessage(25, serverCaCerts_.get(i));
+ }
+ if (transitEncryptionMode_
+ != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode
+ .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED
+ .getNumber()) {
+ output.writeEnum(26, transitEncryptionMode_);
+ }
+ if (maintenancePolicy_ != null) {
+ output.writeMessage(27, getMaintenancePolicy());
+ }
+ if (maintenanceSchedule_ != null) {
+ output.writeMessage(28, getMaintenanceSchedule());
+ }
if (replicaCount_ != 0) {
output.writeInt32(31, replicaCount_);
}
@@ -2487,6 +3057,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
.getNumber()) {
output.writeEnum(35, readReplicasMode_);
}
+ if (persistenceConfig_ != null) {
+ output.writeMessage(37, getPersistenceConfig());
+ }
unknownFields.writeTo(output);
}
@@ -2569,6 +3142,25 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(22, connectMode_);
}
+ if (authEnabled_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(23, authEnabled_);
+ }
+ for (int i = 0; i < serverCaCerts_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(25, serverCaCerts_.get(i));
+ }
+ if (transitEncryptionMode_
+ != com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode
+ .TRANSIT_ENCRYPTION_MODE_UNSPECIFIED
+ .getNumber()) {
+ size += com.google.protobuf.CodedOutputStream.computeEnumSize(26, transitEncryptionMode_);
+ }
+ if (maintenancePolicy_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(27, getMaintenancePolicy());
+ }
+ if (maintenanceSchedule_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(28, getMaintenanceSchedule());
+ }
if (replicaCount_ != 0) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(31, replicaCount_);
}
@@ -2586,6 +3178,9 @@ public int getSerializedSize() {
.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(35, readReplicasMode_);
}
+ if (persistenceConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getPersistenceConfig());
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -2623,11 +3218,26 @@ 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 (getAuthEnabled() != other.getAuthEnabled()) return false;
+ if (!getServerCaCertsList().equals(other.getServerCaCertsList())) return false;
+ if (transitEncryptionMode_ != other.transitEncryptionMode_) return false;
+ if (hasMaintenancePolicy() != other.hasMaintenancePolicy()) return false;
+ if (hasMaintenancePolicy()) {
+ if (!getMaintenancePolicy().equals(other.getMaintenancePolicy())) return false;
+ }
+ if (hasMaintenanceSchedule() != other.hasMaintenanceSchedule()) return false;
+ if (hasMaintenanceSchedule()) {
+ if (!getMaintenanceSchedule().equals(other.getMaintenanceSchedule())) 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 (hasPersistenceConfig() != other.hasPersistenceConfig()) return false;
+ if (hasPersistenceConfig()) {
+ if (!getPersistenceConfig().equals(other.getPersistenceConfig())) return false;
+ }
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -2683,6 +3293,22 @@ public int hashCode() {
hash = (53 * hash) + getPersistenceIamIdentity().hashCode();
hash = (37 * hash) + CONNECT_MODE_FIELD_NUMBER;
hash = (53 * hash) + connectMode_;
+ hash = (37 * hash) + AUTH_ENABLED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAuthEnabled());
+ if (getServerCaCertsCount() > 0) {
+ hash = (37 * hash) + SERVER_CA_CERTS_FIELD_NUMBER;
+ hash = (53 * hash) + getServerCaCertsList().hashCode();
+ }
+ hash = (37 * hash) + TRANSIT_ENCRYPTION_MODE_FIELD_NUMBER;
+ hash = (53 * hash) + transitEncryptionMode_;
+ if (hasMaintenancePolicy()) {
+ hash = (37 * hash) + MAINTENANCE_POLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getMaintenancePolicy().hashCode();
+ }
+ if (hasMaintenanceSchedule()) {
+ hash = (37 * hash) + MAINTENANCE_SCHEDULE_FIELD_NUMBER;
+ hash = (53 * hash) + getMaintenanceSchedule().hashCode();
+ }
hash = (37 * hash) + REPLICA_COUNT_FIELD_NUMBER;
hash = (53 * hash) + getReplicaCount();
if (getNodesCount() > 0) {
@@ -2695,6 +3321,10 @@ public int hashCode() {
hash = (53 * hash) + getReadEndpointPort();
hash = (37 * hash) + READ_REPLICAS_MODE_FIELD_NUMBER;
hash = (53 * hash) + readReplicasMode_;
+ if (hasPersistenceConfig()) {
+ hash = (37 * hash) + PERSISTENCE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getPersistenceConfig().hashCode();
+ }
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -2859,6 +3489,7 @@ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getServerCaCertsFieldBuilder();
getNodesFieldBuilder();
}
}
@@ -2906,11 +3537,33 @@ public Builder clear() {
connectMode_ = 0;
+ authEnabled_ = false;
+
+ if (serverCaCertsBuilder_ == null) {
+ serverCaCerts_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ serverCaCertsBuilder_.clear();
+ }
+ transitEncryptionMode_ = 0;
+
+ if (maintenancePolicyBuilder_ == null) {
+ maintenancePolicy_ = null;
+ } else {
+ maintenancePolicy_ = null;
+ maintenancePolicyBuilder_ = null;
+ }
+ if (maintenanceScheduleBuilder_ == null) {
+ maintenanceSchedule_ = null;
+ } else {
+ maintenanceSchedule_ = null;
+ maintenanceScheduleBuilder_ = null;
+ }
replicaCount_ = 0;
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
nodesBuilder_.clear();
}
@@ -2920,6 +3573,12 @@ public Builder clear() {
readReplicasMode_ = 0;
+ if (persistenceConfigBuilder_ == null) {
+ persistenceConfig_ = null;
+ } else {
+ persistenceConfig_ = null;
+ persistenceConfigBuilder_ = null;
+ }
return this;
}
@@ -2973,11 +3632,32 @@ public com.google.cloud.redis.v1beta1.Instance buildPartial() {
result.authorizedNetwork_ = authorizedNetwork_;
result.persistenceIamIdentity_ = persistenceIamIdentity_;
result.connectMode_ = connectMode_;
+ result.authEnabled_ = authEnabled_;
+ if (serverCaCertsBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)) {
+ serverCaCerts_ = java.util.Collections.unmodifiableList(serverCaCerts_);
+ bitField0_ = (bitField0_ & ~0x00000004);
+ }
+ result.serverCaCerts_ = serverCaCerts_;
+ } else {
+ result.serverCaCerts_ = serverCaCertsBuilder_.build();
+ }
+ result.transitEncryptionMode_ = transitEncryptionMode_;
+ if (maintenancePolicyBuilder_ == null) {
+ result.maintenancePolicy_ = maintenancePolicy_;
+ } else {
+ result.maintenancePolicy_ = maintenancePolicyBuilder_.build();
+ }
+ if (maintenanceScheduleBuilder_ == null) {
+ result.maintenanceSchedule_ = maintenanceSchedule_;
+ } else {
+ result.maintenanceSchedule_ = maintenanceScheduleBuilder_.build();
+ }
result.replicaCount_ = replicaCount_;
if (nodesBuilder_ == null) {
- if (((bitField0_ & 0x00000004) != 0)) {
+ if (((bitField0_ & 0x00000008) != 0)) {
nodes_ = java.util.Collections.unmodifiableList(nodes_);
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
}
result.nodes_ = nodes_;
} else {
@@ -2986,6 +3666,11 @@ public com.google.cloud.redis.v1beta1.Instance buildPartial() {
result.readEndpoint_ = readEndpoint_;
result.readEndpointPort_ = readEndpointPort_;
result.readReplicasMode_ = readReplicasMode_;
+ if (persistenceConfigBuilder_ == null) {
+ result.persistenceConfig_ = persistenceConfig_;
+ } else {
+ result.persistenceConfig_ = persistenceConfigBuilder_.build();
+ }
onBuilt();
return result;
}
@@ -3099,6 +3784,45 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) {
if (other.connectMode_ != 0) {
setConnectModeValue(other.getConnectModeValue());
}
+ if (other.getAuthEnabled() != false) {
+ setAuthEnabled(other.getAuthEnabled());
+ }
+ if (serverCaCertsBuilder_ == null) {
+ if (!other.serverCaCerts_.isEmpty()) {
+ if (serverCaCerts_.isEmpty()) {
+ serverCaCerts_ = other.serverCaCerts_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ } else {
+ ensureServerCaCertsIsMutable();
+ serverCaCerts_.addAll(other.serverCaCerts_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.serverCaCerts_.isEmpty()) {
+ if (serverCaCertsBuilder_.isEmpty()) {
+ serverCaCertsBuilder_.dispose();
+ serverCaCertsBuilder_ = null;
+ serverCaCerts_ = other.serverCaCerts_;
+ bitField0_ = (bitField0_ & ~0x00000004);
+ serverCaCertsBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getServerCaCertsFieldBuilder()
+ : null;
+ } else {
+ serverCaCertsBuilder_.addAllMessages(other.serverCaCerts_);
+ }
+ }
+ }
+ if (other.transitEncryptionMode_ != 0) {
+ setTransitEncryptionModeValue(other.getTransitEncryptionModeValue());
+ }
+ if (other.hasMaintenancePolicy()) {
+ mergeMaintenancePolicy(other.getMaintenancePolicy());
+ }
+ if (other.hasMaintenanceSchedule()) {
+ mergeMaintenanceSchedule(other.getMaintenanceSchedule());
+ }
if (other.getReplicaCount() != 0) {
setReplicaCount(other.getReplicaCount());
}
@@ -3106,7 +3830,7 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) {
if (!other.nodes_.isEmpty()) {
if (nodes_.isEmpty()) {
nodes_ = other.nodes_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureNodesIsMutable();
nodes_.addAll(other.nodes_);
@@ -3119,7 +3843,7 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) {
nodesBuilder_.dispose();
nodesBuilder_ = null;
nodes_ = other.nodes_;
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
nodesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getNodesFieldBuilder()
@@ -3139,64 +3863,1156 @@ public Builder mergeFrom(com.google.cloud.redis.v1beta1.Instance other) {
if (other.readReplicasMode_ != 0) {
setReadReplicasModeValue(other.getReadReplicasModeValue());
}
+ if (other.hasPersistenceConfig()) {
+ mergePersistenceConfig(other.getPersistenceConfig());
+ }
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
- public final boolean isInitialized() {
- return true;
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.redis.v1beta1.Instance parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.redis.v1beta1.Instance) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ private java.lang.Object name_ = "";
+ /**
+ *
+ *
+ *
+ * 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.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];
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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.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];
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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.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];
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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.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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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.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];
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object displayName_ = "";
+ /**
+ *
+ *
+ *
+ * An arbitrary and optional user-provided name for the instance.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The displayName.
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ displayName_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An arbitrary and optional user-provided name for the instance.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return The bytes for displayName.
+ */
+ public com.google.protobuf.ByteString getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ displayName_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * An arbitrary and optional user-provided name for the instance.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @param value The displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ displayName_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An arbitrary and optional user-provided name for the instance.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDisplayName() {
+
+ displayName_ = getDefaultInstance().getDisplayName();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * An arbitrary and optional user-provided name for the instance.
+ *
+ *
+ * string display_name = 2;
+ *
+ * @param value The bytes for displayName to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ displayName_ = value;
+ 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() {
+ onChanged();
+ ;
+ if (labels_ == null) {
+ labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
+ }
+ if (!labels_.isMutable()) {
+ labels_ = labels_.copy();
+ }
+ return labels_;
+ }
+
+ public int getLabelsCount() {
+ return internalGetLabels().getMap().size();
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user provided metadata
+ *
+ *
+ * map<string, string> labels = 3;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ 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
+ *
+ *
+ * map<string, string> labels = 3;
+ */
+ @java.lang.Override
+ public java.util.Map getLabelsMap() {
+ return internalGetLabels().getMap();
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user provided metadata
+ *
+ *
+ * map<string, string> labels = 3;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetLabels().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user provided metadata
+ *
+ *
+ * map<string, string> labels = 3;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetLabels().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
+ }
+ return map.get(key);
+ }
+
+ public Builder clearLabels() {
+ internalGetMutableLabels().getMutableMap().clear();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user provided metadata
+ *
+ *
+ * map<string, string> labels = 3;
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map getMutableLabels() {
+ return internalGetMutableLabels().getMutableMap();
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user provided metadata
+ *
+ *
+ * map<string, string> labels = 3;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ if (value == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Resource labels to represent user provided metadata
+ *
+ *
+ * map<string, string> labels = 3;
+ */
+ public Builder putAllLabels(java.util.Map values) {
+ internalGetMutableLabels().getMutableMap().putAll(values);
+ 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;
+ 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();
+ 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;
+ 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;
+ 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();
+ 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;
+ 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;
+ 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();
+ 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;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object reservedIpRange_ = "";
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The reservedIpRange.
+ */
+ 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();
+ reservedIpRange_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return The bytes for reservedIpRange.
+ */
+ 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);
+ reservedIpRange_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The reservedIpRange to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReservedIpRange(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ reservedIpRange_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearReservedIpRange() {
+
+ reservedIpRange_ = getDefaultInstance().getReservedIpRange();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The bytes for reservedIpRange to set.
+ * @return This builder for chaining.
+ */
+ public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ reservedIpRange_ = value;
+ onChanged();
+ 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.
+ *
+ *
+ * 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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 bytes for host.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @param value The host to set.
+ * @return This builder for chaining.
+ */
+ public Builder setHost(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ host_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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 This builder for chaining.
+ */
+ public Builder clearHost() {
+
+ host_ = getDefaultInstance().getHost();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * 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];
+ *
+ * @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;
+ onChanged();
+ return this;
+ }
+
+ private int port_;
+ /**
+ *
+ *
+ *
+ * Output only. The port number of the exposed Redis endpoint.
+ *
+ *
+ * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return The port.
+ */
+ @java.lang.Override
+ public int getPort() {
+ return port_;
}
+ /**
+ *
+ *
+ *
+ * Output only. The port number of the exposed Redis endpoint.
+ *
+ *
+ * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @param value The port to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPort(int value) {
- @java.lang.Override
- public Builder mergeFrom(
- com.google.protobuf.CodedInputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- com.google.cloud.redis.v1beta1.Instance parsedMessage = null;
- try {
- parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
- } catch (com.google.protobuf.InvalidProtocolBufferException e) {
- parsedMessage = (com.google.cloud.redis.v1beta1.Instance) e.getUnfinishedMessage();
- throw e.unwrapIOException();
- } finally {
- if (parsedMessage != null) {
- mergeFrom(parsedMessage);
- }
- }
+ port_ = value;
+ onChanged();
return this;
}
+ /**
+ *
+ *
+ *
+ * Output only. The port number of the exposed Redis endpoint.
+ *
+ *
+ * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPort() {
- private int bitField0_;
+ port_ = 0;
+ onChanged();
+ return this;
+ }
- private java.lang.Object name_ = "";
+ private java.lang.Object currentLocationId_ = "";
/**
*
*
*
- * 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
- * fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The name.
+ * @return The currentLocationId.
*/
- public java.lang.String getName() {
- java.lang.Object ref = name_;
+ 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();
- name_ = s;
+ currentLocationId_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -3206,28 +5022,21 @@ 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
- * fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The bytes for name.
+ * @return The bytes for currentLocationId.
*/
- public com.google.protobuf.ByteString getNameBytes() {
- java.lang.Object ref = name_;
+ 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);
- name_ = b;
+ currentLocationId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -3237,29 +5046,22 @@ 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
- * fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @param value The name to set.
+ * @param value The currentLocationId to set.
* @return This builder for chaining.
*/
- public Builder setName(java.lang.String value) {
+ public Builder setCurrentLocationId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- name_ = value;
+ currentLocationId_ = value;
onChanged();
return this;
}
@@ -3267,25 +5069,18 @@ 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
- * fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
- public Builder clearName() {
+ public Builder clearCurrentLocationId() {
- name_ = getDefaultInstance().getName();
+ currentLocationId_ = getDefaultInstance().getCurrentLocationId();
onChanged();
return this;
}
@@ -3293,319 +5088,348 @@ 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.v1beta1.Instance.location_id] and
- * [alternative_location_id][google.cloud.redis.v1beta1.Instance.alternative_location_id]
- * fields for more details.
+ * 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 name = 1 [(.google.api.field_behavior) = REQUIRED];
+ * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @param value The bytes for name to set.
+ * @param value The bytes for currentLocationId to set.
* @return This builder for chaining.
*/
- public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ public Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- name_ = value;
+ currentLocationId_ = value;
onChanged();
return this;
}
- private java.lang.Object displayName_ = "";
+ 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_;
/**
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Output only. The time the instance was created.
*
*
- * string display_name = 2;
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The displayName.
+ * @return Whether the createTime field is set.
*/
- public java.lang.String getDisplayName() {
- java.lang.Object ref = displayName_;
- if (!(ref instanceof java.lang.String)) {
- com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
- java.lang.String s = bs.toStringUtf8();
- displayName_ = s;
- return s;
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * 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 (java.lang.String) ref;
+ return createTimeBuilder_.getMessage();
}
}
/**
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Output only. The time the instance was created.
*
*
- * string display_name = 2;
- *
- * @return The bytes for displayName.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public com.google.protobuf.ByteString getDisplayNameBytes() {
- java.lang.Object ref = displayName_;
- if (ref instanceof String) {
- com.google.protobuf.ByteString b =
- com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
- displayName_ = b;
- return b;
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ onChanged();
} else {
- return (com.google.protobuf.ByteString) ref;
+ createTimeBuilder_.setMessage(value);
}
+
+ return this;
}
/**
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Output only. The time the instance was created.
*
*
- * string display_name = 2;
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
*
- * @param value The displayName to set.
- * @return This builder for chaining.
+ *
+ *
+ * Output only. The time the instance was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setDisplayName(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (createTime_ != null) {
+ createTime_ =
+ com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
+ } else {
+ createTime_ = value;
+ }
+ onChanged();
+ } else {
+ createTimeBuilder_.mergeFrom(value);
}
- displayName_ = value;
- onChanged();
return this;
}
/**
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Output only. The time the instance was created.
*
*
- * string display_name = 2;
- *
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder clearDisplayName() {
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
- displayName_ = getDefaultInstance().getDisplayName();
- onChanged();
return this;
}
/**
*
*
*
- * An arbitrary and optional user-provided name for the instance.
+ * Output only. The time the instance was created.
*
*
- * string display_name = 2;
- *
- * @param value The bytes for displayName to set.
- * @return This builder for chaining.
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
-
- displayName_ = value;
- 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_;
- }
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
- private com.google.protobuf.MapField
- internalGetMutableLabels() {
onChanged();
- ;
- if (labels_ == null) {
- labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry);
- }
- if (!labels_.isMutable()) {
- labels_ = labels_.copy();
- }
- return labels_;
- }
-
- public int getLabelsCount() {
- return internalGetLabels().getMap().size();
+ return getCreateTimeFieldBuilder().getBuilder();
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The time the instance was created.
*
*
- * map<string, string> labels = 3;
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public boolean containsLabels(java.lang.String key) {
- if (key == null) {
- throw new java.lang.NullPointerException();
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
}
- 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. The time the instance was created.
*
*
- * map<string, string> labels = 3;
+ *
+ * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- @java.lang.Override
- public java.util.Map getLabelsMap() {
- return internalGetLabels().getMap();
+ 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;
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The current state of this instance.
*
*
- * map<string, string> labels = 3;
+ *
+ * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The enum numeric value on the wire for state.
*/
@java.lang.Override
- public java.lang.String getLabelsOrDefault(
- java.lang.String key, java.lang.String defaultValue) {
- if (key == null) {
- throw new java.lang.NullPointerException();
- }
- java.util.Map map = internalGetLabels().getMap();
- return map.containsKey(key) ? map.get(key) : defaultValue;
+ public int getStateValue() {
+ return state_;
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The current state of this instance.
*
*
- * map<string, string> labels = 3;
+ *
+ * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
*/
- @java.lang.Override
- public java.lang.String getLabelsOrThrow(java.lang.String key) {
- if (key == null) {
- throw new java.lang.NullPointerException();
- }
- java.util.Map map = internalGetLabels().getMap();
- if (!map.containsKey(key)) {
- throw new java.lang.IllegalArgumentException();
- }
- return map.get(key);
- }
+ public Builder setStateValue(int value) {
- public Builder clearLabels() {
- internalGetMutableLabels().getMutableMap().clear();
+ state_ = value;
+ onChanged();
return this;
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The current state of this instance.
*
*
- * map<string, string> labels = 3;
+ *
+ * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The state.
*/
- public Builder removeLabels(java.lang.String key) {
- if (key == null) {
- throw new java.lang.NullPointerException();
- }
- internalGetMutableLabels().getMutableMap().remove(key);
- return this;
- }
- /** Use alternate mutation accessors instead. */
- @java.lang.Deprecated
- public java.util.Map getMutableLabels() {
- return internalGetMutableLabels().getMutableMap();
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.Instance.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1beta1.Instance.State result =
+ com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_);
+ return result == null ? com.google.cloud.redis.v1beta1.Instance.State.UNRECOGNIZED : result;
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The current state of this instance.
*
*
- * map<string, string> labels = 3;
+ *
+ * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @param value The state to set.
+ * @return This builder for chaining.
*/
- public Builder putLabels(java.lang.String key, java.lang.String value) {
- if (key == null) {
- throw new java.lang.NullPointerException();
- }
+ public Builder setState(com.google.cloud.redis.v1beta1.Instance.State value) {
if (value == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException();
}
- internalGetMutableLabels().getMutableMap().put(key, value);
+
+ state_ = value.getNumber();
+ onChanged();
return this;
}
/**
*
*
*
- * Resource labels to represent user provided metadata
+ * Output only. The current state of this instance.
*
*
- * map<string, string> labels = 3;
+ *
+ * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return This builder for chaining.
*/
- public Builder putAllLabels(java.util.Map values) {
- internalGetMutableLabels().getMutableMap().putAll(values);
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
return this;
}
- private java.lang.Object locationId_ = "";
+ private java.lang.Object statusMessage_ = "";
/**
*
*
*
- * 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. Additional information about the current status of this
+ * instance, if available.
*
*
- * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The locationId.
+ * @return The statusMessage.
*/
- public java.lang.String getLocationId() {
- java.lang.Object ref = locationId_;
+ 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();
- locationId_ = s;
+ statusMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -3615,23 +5439,20 @@ 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. Additional information about the current status of this
+ * instance, if available.
*
*
- * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @return The bytes for locationId.
- */
- public com.google.protobuf.ByteString getLocationIdBytes() {
- java.lang.Object ref = locationId_;
+ * @return The bytes for statusMessage.
+ */
+ 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);
- locationId_ = b;
+ statusMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -3641,24 +5462,21 @@ 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. Additional information about the current status of this
+ * instance, if available.
*
*
- * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @param value The locationId to set.
+ * @param value The statusMessage to set.
* @return This builder for chaining.
*/
- public Builder setLocationId(java.lang.String value) {
+ public Builder setStatusMessage(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- locationId_ = value;
+ statusMessage_ = value;
onChanged();
return this;
}
@@ -3666,20 +5484,17 @@ 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. Additional information about the current status of this
+ * instance, if available.
*
*
- * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
* @return This builder for chaining.
*/
- public Builder clearLocationId() {
+ public Builder clearStatusMessage() {
- locationId_ = getDefaultInstance().getLocationId();
+ statusMessage_ = getDefaultInstance().getStatusMessage();
onChanged();
return this;
}
@@ -3687,236 +5502,319 @@ public Builder clearLocationId() {
*
*
*
- * Optional. The zone where the instance will be provisioned. If not provided,
- * the service will choose a zone from the specified region for the instance.
- * For standard tier, additional nodes will be added across multiple zones for
- * protection against zonal failures. If specified, at least one node will be
- * provisioned in this zone.
+ * Output only. Additional information about the current status of this
+ * instance, if available.
*
*
- * string location_id = 4 [(.google.api.field_behavior) = OPTIONAL];
+ * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- * @param value The bytes for locationId to set.
+ * @param value The bytes for statusMessage to set.
* @return This builder for chaining.
*/
- public Builder setLocationIdBytes(com.google.protobuf.ByteString value) {
+ public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- locationId_ = value;
+ statusMessage_ = value;
onChanged();
return this;
}
- private java.lang.Object alternativeLocationId_ = "";
+ 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() {
+ onChanged();
+ ;
+ if (redisConfigs_ == null) {
+ redisConfigs_ =
+ com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry);
+ }
+ if (!redisConfigs_.isMutable()) {
+ redisConfigs_ = redisConfigs_.copy();
+ }
+ return redisConfigs_;
+ }
+
+ public int getRedisConfigsCount() {
+ return internalGetRedisConfigs().getMap().size();
+ }
/**
*
*
*
- * 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.
+ * 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 alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The alternativeLocationId.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- 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;
+ @java.lang.Override
+ public boolean containsRedisConfigs(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
}
+ return internalGetRedisConfigs().getMap().containsKey(key);
+ }
+ /** Use {@link #getRedisConfigsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map getRedisConfigs() {
+ return getRedisConfigsMap();
}
/**
*
*
*
- * 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.
+ * 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 alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.Map getRedisConfigsMap() {
+ return internalGetRedisConfigs().getMap();
+ }
+ /**
*
- * @return The bytes for alternativeLocationId.
+ *
+ *
+ * Optional. Redis configuration parameters, according to
+ * http://redis.io/topics/config. Currently, the only supported parameters
+ * are:
+ * Redis version 3.2 and newer:
+ * * maxmemory-policy
+ * * notify-keyspace-events
+ * Redis version 4.0 and newer:
+ * * activedefrag
+ * * lfu-decay-time
+ * * lfu-log-factor
+ * * maxmemory-gb
+ * Redis version 5.0 and newer:
+ * * stream-node-max-bytes
+ * * stream-node-max-entries
+ *
+ *
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public 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;
+ @java.lang.Override
+ public java.lang.String getRedisConfigsOrDefault(
+ java.lang.String key, java.lang.String defaultValue) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
}
+ java.util.Map map = internalGetRedisConfigs().getMap();
+ return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
*
*
- * 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.
+ * 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 alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The alternativeLocationId to set.
- * @return This builder for chaining.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setAlternativeLocationId(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 java.lang.NullPointerException();
+ }
+ java.util.Map map = internalGetRedisConfigs().getMap();
+ if (!map.containsKey(key)) {
+ throw new java.lang.IllegalArgumentException();
}
+ return map.get(key);
+ }
- alternativeLocationId_ = value;
- onChanged();
+ public Builder clearRedisConfigs() {
+ internalGetMutableRedisConfigs().getMutableMap().clear();
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.
+ * 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 alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return This builder for chaining.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder clearAlternativeLocationId() {
-
- alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId();
- onChanged();
+ public Builder removeRedisConfigs(java.lang.String key) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
+ internalGetMutableRedisConfigs().getMutableMap().remove(key);
return this;
}
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map getMutableRedisConfigs() {
+ return internalGetMutableRedisConfigs().getMutableMap();
+ }
/**
*
*
*
- * 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.
+ * 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 alternative_location_id = 5 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The bytes for alternativeLocationId to set.
- * @return This builder for chaining.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setAlternativeLocationIdBytes(com.google.protobuf.ByteString value) {
+ public Builder putRedisConfigs(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new java.lang.NullPointerException();
+ }
if (value == null) {
- throw new NullPointerException();
+ throw new java.lang.NullPointerException();
}
- checkByteStringIsUtf8(value);
-
- alternativeLocationId_ = value;
- onChanged();
+ internalGetMutableRedisConfigs().getMutableMap().put(key, value);
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
+ * 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 redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The redisVersion.
+ * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- 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;
- }
+ public Builder putAllRedisConfigs(java.util.Map values) {
+ internalGetMutableRedisConfigs().getMutableMap().putAll(values);
+ return this;
}
+
+ private int tier_ = 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
+ * Required. The service tier of the instance.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @return The bytes for redisVersion.
+ * @return The enum numeric value on the wire for tier.
*/
- 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 getTierValue() {
+ return tier_;
}
/**
*
*
*
- * 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
+ * Required. The service tier of the instance.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @param value The redisVersion to set.
+ * @param value The enum numeric value on the wire for tier to set.
* @return This builder for chaining.
*/
- public Builder setRedisVersion(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
+ public Builder setTierValue(int value) {
- redisVersion_ = value;
+ tier_ = value;
onChanged();
return this;
}
@@ -3924,162 +5822,96 @@ 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
+ * Required. The service tier of the instance.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @return This builder for chaining.
+ * @return The tier.
*/
- public Builder clearRedisVersion() {
-
- redisVersion_ = getDefaultInstance().getRedisVersion();
- onChanged();
- return this;
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.Instance.Tier getTier() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1beta1.Instance.Tier result =
+ com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_);
+ return result == null ? com.google.cloud.redis.v1beta1.Instance.Tier.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
+ * Required. The service tier of the instance.
*
*
- * string redis_version = 7 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @param value The bytes for redisVersion to set.
+ * @param value The tier to set.
* @return This builder for chaining.
*/
- public Builder setRedisVersionBytes(com.google.protobuf.ByteString value) {
+ public Builder setTier(com.google.cloud.redis.v1beta1.Instance.Tier value) {
if (value == null) {
throw new NullPointerException();
}
- checkByteStringIsUtf8(value);
- redisVersion_ = value;
+ tier_ = value.getNumber();
onChanged();
return this;
}
-
- private java.lang.Object reservedIpRange_ = "";
- /**
- *
- *
- *
- * 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];
- *
- * @return The reservedIpRange.
- */
- 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();
- reservedIpRange_ = s;
- return s;
- } else {
- return (java.lang.String) ref;
- }
- }
/**
*
*
*
- * 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.
+ * Required. The service tier of the instance.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ *
*
- * @return The bytes for reservedIpRange.
+ * @return This builder for chaining.
*/
- 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);
- reservedIpRange_ = b;
- return b;
- } else {
- return (com.google.protobuf.ByteString) ref;
- }
+ public Builder clearTier() {
+
+ tier_ = 0;
+ onChanged();
+ return this;
}
+
+ private int memorySizeGb_;
/**
*
*
*
- * 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.
+ * Required. Redis memory size in GiB.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
*
- * @param value The reservedIpRange to set.
- * @return This builder for chaining.
+ * @return The memorySizeGb.
*/
- public Builder setReservedIpRange(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
- }
-
- reservedIpRange_ = value;
- onChanged();
- return this;
+ @java.lang.Override
+ public int getMemorySizeGb() {
+ return memorySizeGb_;
}
/**
*
*
*
- * 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.
+ * Required. Redis memory size in GiB.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
*
+ * @param value The memorySizeGb to set.
* @return This builder for chaining.
*/
- public Builder clearReservedIpRange() {
+ public Builder setMemorySizeGb(int value) {
- reservedIpRange_ = getDefaultInstance().getReservedIpRange();
+ memorySizeGb_ = value;
onChanged();
return this;
}
@@ -4087,51 +5919,41 @@ 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.
+ * Required. Redis memory size in GiB.
*
*
- * string reserved_ip_range = 9 [(.google.api.field_behavior) = OPTIONAL];
+ * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
*
- * @param value The bytes for reservedIpRange to set.
* @return This builder for chaining.
*/
- public Builder setReservedIpRangeBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
- }
- checkByteStringIsUtf8(value);
+ public Builder clearMemorySizeGb() {
- reservedIpRange_ = value;
+ memorySizeGb_ = 0;
onChanged();
return this;
}
- private java.lang.Object host_ = "";
+ private java.lang.Object authorizedNetwork_ = "";
/**
*
*
*
- * Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * 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 host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The host.
+ * @return The authorizedNetwork.
*/
- public java.lang.String getHost() {
- java.lang.Object ref = host_;
+ 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();
- host_ = s;
+ authorizedNetwork_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4141,20 +5963,22 @@ public java.lang.String getHost() {
*
*
*
- * Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * 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 host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
- * @return The bytes for host.
+ * @return The bytes for authorizedNetwork.
*/
- public com.google.protobuf.ByteString getHostBytes() {
- java.lang.Object ref = host_;
+ 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);
- host_ = b;
+ authorizedNetwork_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -4164,21 +5988,23 @@ 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.
+ * 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 host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The host to set.
+ * @param value The authorizedNetwork to set.
* @return This builder for chaining.
*/
- public Builder setHost(java.lang.String value) {
+ public Builder setAuthorizedNetwork(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- host_ = value;
+ authorizedNetwork_ = value;
onChanged();
return this;
}
@@ -4186,17 +6012,19 @@ 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.
+ * 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 host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
* @return This builder for chaining.
*/
- public Builder clearHost() {
+ public Builder clearAuthorizedNetwork() {
- host_ = getDefaultInstance().getHost();
+ authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork();
onChanged();
return this;
}
@@ -4204,98 +6032,51 @@ public Builder clearHost() {
*
*
*
- * Output only. Hostname or IP address of the exposed Redis endpoint used by
- * clients to connect to the service.
+ * 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 host = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
*
- * @param value The bytes for host to set.
+ * @param value The bytes for authorizedNetwork to set.
* @return This builder for chaining.
*/
- public Builder setHostBytes(com.google.protobuf.ByteString value) {
+ public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- host_ = value;
- onChanged();
- return this;
- }
-
- private int port_;
- /**
- *
- *
- *
- * Output only. The port number of the exposed Redis endpoint.
- *
- *
- * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The port.
- */
- @java.lang.Override
- public int getPort() {
- return port_;
- }
- /**
- *
- *
- *
- * Output only. The port number of the exposed Redis endpoint.
- *
- *
- * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @param value The port to set.
- * @return This builder for chaining.
- */
- public Builder setPort(int value) {
-
- port_ = value;
- onChanged();
- return this;
- }
- /**
- *
- *
- *
- * Output only. The port number of the exposed Redis endpoint.
- *
- *
- * int32 port = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return This builder for chaining.
- */
- public Builder clearPort() {
-
- port_ = 0;
+ authorizedNetwork_ = value;
onChanged();
return this;
}
- private java.lang.Object currentLocationId_ = "";
+ private java.lang.Object persistenceIamIdentity_ = "";
/**
*
*
*
- * 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.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The currentLocationId.
+ * @return The persistenceIamIdentity.
*/
- public java.lang.String getCurrentLocationId() {
- java.lang.Object ref = currentLocationId_;
+ 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();
- currentLocationId_ = s;
+ persistenceIamIdentity_ = s;
return s;
} else {
return (java.lang.String) ref;
@@ -4305,21 +6086,24 @@ 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.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @return The bytes for currentLocationId.
+ * @return The bytes for persistenceIamIdentity.
*/
- public com.google.protobuf.ByteString getCurrentLocationIdBytes() {
- java.lang.Object ref = currentLocationId_;
+ 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);
- currentLocationId_ = b;
+ persistenceIamIdentity_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
@@ -4329,22 +6113,25 @@ 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.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The currentLocationId to set.
+ * @param value The persistenceIamIdentity to set.
* @return This builder for chaining.
*/
- public Builder setCurrentLocationId(java.lang.String value) {
+ public Builder setPersistenceIamIdentity(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
- currentLocationId_ = value;
+ persistenceIamIdentity_ = value;
onChanged();
return this;
}
@@ -4352,18 +6139,21 @@ 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.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
* @return This builder for chaining.
*/
- public Builder clearCurrentLocationId() {
+ public Builder clearPersistenceIamIdentity() {
- currentLocationId_ = getDefaultInstance().getCurrentLocationId();
+ persistenceIamIdentity_ = getDefaultInstance().getPersistenceIamIdentity();
onChanged();
return this;
}
@@ -4371,733 +6161,628 @@ 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.
+ * Output only. Cloud IAM identity used by import / export operations to
+ * transfer data to/from Cloud Storage. Format is
+ * "serviceAccount:<service_account_email>". The value may change over time
+ * for a given instance so should be checked before each import/export
+ * operation.
*
*
- * string current_location_id = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*
- * @param value The bytes for currentLocationId to set.
+ * @param value The bytes for persistenceIamIdentity to set.
* @return This builder for chaining.
*/
- public Builder setCurrentLocationIdBytes(com.google.protobuf.ByteString value) {
+ public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
- currentLocationId_ = value;
+ persistenceIamIdentity_ = value;
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_;
+ private int connectMode_ = 0;
/**
*
*
*
- * Output only. The time the instance was created.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return Whether the createTime field is set.
+ * @return The enum numeric value on the wire for connectMode.
*/
- public boolean hasCreateTime() {
- return createTimeBuilder_ != null || createTime_ != null;
+ @java.lang.Override
+ public int getConnectModeValue() {
+ return connectMode_;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The createTime.
+ * @param value The enum numeric value on the wire for connectMode to set.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.Timestamp getCreateTime() {
- if (createTimeBuilder_ == null) {
- return createTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : createTime_;
- } else {
- return createTimeBuilder_.getMessage();
- }
+ public Builder setConnectModeValue(int value) {
+
+ connectMode_ = value;
+ onChanged();
+ return this;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return The connectMode.
*/
- public Builder setCreateTime(com.google.protobuf.Timestamp value) {
- if (createTimeBuilder_ == null) {
- if (value == null) {
- throw new NullPointerException();
- }
- createTime_ = value;
- onChanged();
- } else {
- createTimeBuilder_.setMessage(value);
- }
-
- return this;
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1beta1.Instance.ConnectMode result =
+ com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_);
+ return result == null
+ ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED
+ : result;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @param value The connectMode to set.
+ * @return This builder for chaining.
*/
- public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
- if (createTimeBuilder_ == null) {
- createTime_ = builderForValue.build();
- onChanged();
- } else {
- createTimeBuilder_.setMessage(builderForValue.build());
+ public Builder setConnectMode(com.google.cloud.redis.v1beta1.Instance.ConnectMode value) {
+ if (value == null) {
+ throw new NullPointerException();
}
+ connectMode_ = value.getNumber();
+ onChanged();
return this;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Optional. The network connect mode of the Redis instance.
+ * If not provided, the connect mode defaults to DIRECT_PEERING.
*
*
*
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
*
+ *
+ * @return This builder for chaining.
*/
- public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
- if (createTimeBuilder_ == null) {
- if (createTime_ != null) {
- createTime_ =
- com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
- } else {
- createTime_ = value;
- }
- onChanged();
- } else {
- createTimeBuilder_.mergeFrom(value);
- }
+ public Builder clearConnectMode() {
+ connectMode_ = 0;
+ onChanged();
return this;
}
+
+ private boolean authEnabled_;
/**
*
*
*
- * Output only. The time the instance was created.
+ * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
+ * "true" AUTH is enabled on the instance. Default value is "false" meaning
+ * AUTH is disabled.
*
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The authEnabled.
*/
- public Builder clearCreateTime() {
- if (createTimeBuilder_ == null) {
- createTime_ = null;
- onChanged();
- } else {
- createTime_ = null;
- createTimeBuilder_ = null;
- }
-
- return this;
+ @java.lang.Override
+ public boolean getAuthEnabled() {
+ return authEnabled_;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
+ * "true" AUTH is enabled on the instance. Default value is "false" meaning
+ * AUTH is disabled.
*
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The authEnabled to set.
+ * @return This builder for chaining.
*/
- public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+ public Builder setAuthEnabled(boolean value) {
+ authEnabled_ = value;
onChanged();
- return getCreateTimeFieldBuilder().getBuilder();
+ return this;
}
/**
*
*
*
- * Output only. The time the instance was created.
+ * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
+ * "true" AUTH is enabled on the instance. Default value is "false" meaning
+ * AUTH is disabled.
*
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- */
- public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
- if (createTimeBuilder_ != null) {
- return createTimeBuilder_.getMessageOrBuilder();
- } else {
- return createTime_ == null
- ? com.google.protobuf.Timestamp.getDefaultInstance()
- : createTime_;
- }
- }
- /**
- *
- *
- *
- * Output only. The time the instance was created.
- *
+ * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
*
- *
- * .google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
+ * @return This builder for chaining.
*/
- 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;
+ public Builder clearAuthEnabled() {
+
+ authEnabled_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List serverCaCerts_ =
+ java.util.Collections.emptyList();
+
+ private void ensureServerCaCertsIsMutable() {
+ if (!((bitField0_ & 0x00000004) != 0)) {
+ serverCaCerts_ =
+ new java.util.ArrayList(serverCaCerts_);
+ bitField0_ |= 0x00000004;
}
- return createTimeBuilder_;
}
- private int state_ = 0;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.TlsCertificate,
+ com.google.cloud.redis.v1beta1.TlsCertificate.Builder,
+ com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>
+ serverCaCertsBuilder_;
+
/**
*
*
*
- * Output only. The current state of this instance.
+ * Output only. List of server CA certificates for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return The enum numeric value on the wire for state.
*/
- @java.lang.Override
- public int getStateValue() {
- return state_;
+ public java.util.List getServerCaCertsList() {
+ if (serverCaCertsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(serverCaCerts_);
+ } else {
+ return serverCaCertsBuilder_.getMessageList();
+ }
}
/**
*
*
*
- * Output only. The current state of this instance.
+ * Output only. List of server CA certificates for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @param value The enum numeric value on the wire for state to set.
- * @return This builder for chaining.
*/
- public Builder setStateValue(int value) {
-
- state_ = value;
- onChanged();
- return this;
+ public int getServerCaCertsCount() {
+ if (serverCaCertsBuilder_ == null) {
+ return serverCaCerts_.size();
+ } else {
+ return serverCaCertsBuilder_.getCount();
+ }
}
/**
*
*
*
- * Output only. The current state of this instance.
+ * Output only. List of server CA certificates for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return The state.
*/
- @java.lang.Override
- public com.google.cloud.redis.v1beta1.Instance.State getState() {
- @SuppressWarnings("deprecation")
- com.google.cloud.redis.v1beta1.Instance.State result =
- com.google.cloud.redis.v1beta1.Instance.State.valueOf(state_);
- return result == null ? com.google.cloud.redis.v1beta1.Instance.State.UNRECOGNIZED : result;
+ public com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index) {
+ if (serverCaCertsBuilder_ == null) {
+ return serverCaCerts_.get(index);
+ } else {
+ return serverCaCertsBuilder_.getMessage(index);
+ }
}
/**
*
*
*
- * Output only. The current state of this instance.
+ * Output only. List of server CA certificates for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @param value The state to set.
- * @return This builder for chaining.
*/
- public Builder setState(com.google.cloud.redis.v1beta1.Instance.State value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setServerCaCerts(
+ int index, com.google.cloud.redis.v1beta1.TlsCertificate value) {
+ if (serverCaCertsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerCaCertsIsMutable();
+ serverCaCerts_.set(index, value);
+ onChanged();
+ } else {
+ serverCaCertsBuilder_.setMessage(index, value);
}
-
- state_ = value.getNumber();
- onChanged();
return this;
}
/**
*
*
*
- * Output only. The current state of this instance.
+ * Output only. List of server CA certificates for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.State state = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return This builder for chaining.
*/
- public Builder clearState() {
-
- state_ = 0;
- onChanged();
+ public Builder setServerCaCerts(
+ int index, com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) {
+ if (serverCaCertsBuilder_ == null) {
+ ensureServerCaCertsIsMutable();
+ serverCaCerts_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ serverCaCertsBuilder_.setMessage(index, builderForValue.build());
+ }
return this;
- }
-
- private java.lang.Object statusMessage_ = "";
+ }
/**
*
*
*
- * Output only. Additional information about the current status of this
- * instance, if available.
+ * Output only. List of server CA certificates for the instance.
*
*
- * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The statusMessage.
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- 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();
- statusMessage_ = s;
- return s;
+ public Builder addServerCaCerts(com.google.cloud.redis.v1beta1.TlsCertificate value) {
+ if (serverCaCertsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerCaCertsIsMutable();
+ serverCaCerts_.add(value);
+ onChanged();
} else {
- return (java.lang.String) ref;
+ serverCaCertsBuilder_.addMessage(value);
}
+ return this;
}
/**
*
*
*
- * Output only. Additional information about the current status of this
- * instance, if available.
+ * Output only. List of server CA certificates for the instance.
*
*
- * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return The bytes for statusMessage.
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- 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);
- statusMessage_ = b;
- return b;
+ public Builder addServerCaCerts(
+ int index, com.google.cloud.redis.v1beta1.TlsCertificate value) {
+ if (serverCaCertsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServerCaCertsIsMutable();
+ serverCaCerts_.add(index, value);
+ onChanged();
} else {
- return (com.google.protobuf.ByteString) ref;
+ serverCaCertsBuilder_.addMessage(index, value);
}
+ return this;
}
/**
*
*
*
- * Output only. Additional information about the current status of this
- * instance, if available.
+ * Output only. List of server CA certificates for the instance.
*
*
- * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @param value The statusMessage to set.
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setStatusMessage(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder addServerCaCerts(
+ com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) {
+ if (serverCaCertsBuilder_ == null) {
+ ensureServerCaCertsIsMutable();
+ serverCaCerts_.add(builderForValue.build());
+ onChanged();
+ } else {
+ serverCaCertsBuilder_.addMessage(builderForValue.build());
}
-
- statusMessage_ = value;
- onChanged();
return this;
}
/**
*
*
*
- * Output only. Additional information about the current status of this
- * instance, if available.
+ * Output only. List of server CA certificates for the instance.
*
*
- * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder clearStatusMessage() {
-
- statusMessage_ = getDefaultInstance().getStatusMessage();
- onChanged();
+ public Builder addServerCaCerts(
+ int index, com.google.cloud.redis.v1beta1.TlsCertificate.Builder builderForValue) {
+ if (serverCaCertsBuilder_ == null) {
+ ensureServerCaCertsIsMutable();
+ serverCaCerts_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ serverCaCertsBuilder_.addMessage(index, builderForValue.build());
+ }
return this;
}
/**
*
*
*
- * Output only. Additional information about the current status of this
- * instance, if available.
+ * Output only. List of server CA certificates for the instance.
*
*
- * string status_message = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
- *
- * @param value The bytes for statusMessage to set.
- * @return This builder for chaining.
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
*/
- public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder addAllServerCaCerts(
+ java.lang.Iterable extends com.google.cloud.redis.v1beta1.TlsCertificate> values) {
+ if (serverCaCertsBuilder_ == null) {
+ ensureServerCaCertsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, serverCaCerts_);
+ onChanged();
+ } else {
+ serverCaCertsBuilder_.addAllMessages(values);
}
- checkByteStringIsUtf8(value);
-
- statusMessage_ = value;
- onChanged();
return this;
}
-
- 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() {
- onChanged();
- ;
- if (redisConfigs_ == null) {
- redisConfigs_ =
- com.google.protobuf.MapField.newMapField(RedisConfigsDefaultEntryHolder.defaultEntry);
- }
- if (!redisConfigs_.isMutable()) {
- redisConfigs_ = redisConfigs_.copy();
- }
- return redisConfigs_;
- }
-
- public int getRedisConfigsCount() {
- return internalGetRedisConfigs().getMap().size();
- }
/**
*
*
*
- * 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
+ * Output only. List of server CA certificates for the instance.
*
*
- * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- @java.lang.Override
- public boolean containsRedisConfigs(java.lang.String key) {
- if (key == null) {
- throw new java.lang.NullPointerException();
+ public Builder clearServerCaCerts() {
+ if (serverCaCertsBuilder_ == null) {
+ serverCaCerts_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ serverCaCertsBuilder_.clear();
}
- return internalGetRedisConfigs().getMap().containsKey(key);
- }
- /** Use {@link #getRedisConfigsMap()} instead. */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map getRedisConfigs() {
- return getRedisConfigsMap();
+ return this;
}
/**
*
*
*
- * 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
+ * Output only. List of server CA certificates for the instance.
*
*
- * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- @java.lang.Override
- public java.util.Map getRedisConfigsMap() {
- return internalGetRedisConfigs().getMap();
+ public Builder removeServerCaCerts(int index) {
+ if (serverCaCertsBuilder_ == null) {
+ ensureServerCaCertsIsMutable();
+ serverCaCerts_.remove(index);
+ onChanged();
+ } else {
+ serverCaCertsBuilder_.remove(index);
+ }
+ return this;
}
/**
*
*
*
- * 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
+ * Output only. List of server CA certificates for the instance.
*
*
- * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- @java.lang.Override
- public java.lang.String getRedisConfigsOrDefault(
- java.lang.String key, java.lang.String defaultValue) {
- if (key == null) {
- throw new java.lang.NullPointerException();
- }
- java.util.Map map = internalGetRedisConfigs().getMap();
- return map.containsKey(key) ? map.get(key) : defaultValue;
+ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder getServerCaCertsBuilder(
+ int index) {
+ return getServerCaCertsFieldBuilder().getBuilder(index);
}
/**
*
*
*
- * 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
+ * Output only. List of server CA certificates for the instance.
*
*
- * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- @java.lang.Override
- public java.lang.String getRedisConfigsOrThrow(java.lang.String key) {
- if (key == null) {
- throw new java.lang.NullPointerException();
- }
- java.util.Map map = internalGetRedisConfigs().getMap();
- if (!map.containsKey(key)) {
- throw new java.lang.IllegalArgumentException();
+ public com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(
+ int index) {
+ if (serverCaCertsBuilder_ == null) {
+ return serverCaCerts_.get(index);
+ } else {
+ return serverCaCertsBuilder_.getMessageOrBuilder(index);
}
- return map.get(key);
- }
-
- public Builder clearRedisConfigs() {
- internalGetMutableRedisConfigs().getMutableMap().clear();
- return this;
}
/**
*
*
*
- * 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
+ * Output only. List of server CA certificates for the instance.
*
*
- * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder removeRedisConfigs(java.lang.String key) {
- if (key == null) {
- throw new java.lang.NullPointerException();
+ public java.util.List extends com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>
+ getServerCaCertsOrBuilderList() {
+ if (serverCaCertsBuilder_ != null) {
+ return serverCaCertsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(serverCaCerts_);
}
- internalGetMutableRedisConfigs().getMutableMap().remove(key);
- return this;
}
- /** Use alternate mutation accessors instead. */
- @java.lang.Deprecated
- public java.util.Map getMutableRedisConfigs() {
- return internalGetMutableRedisConfigs().getMutableMap();
+ /**
+ *
+ *
+ *
+ * Output only. List of server CA certificates for the instance.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder addServerCaCertsBuilder() {
+ return getServerCaCertsFieldBuilder()
+ .addBuilder(com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance());
}
/**
*
*
*
- * 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
+ * Output only. List of server CA certificates for the instance.
*
*
- * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder putRedisConfigs(java.lang.String key, java.lang.String value) {
- if (key == null) {
- throw new java.lang.NullPointerException();
- }
- if (value == null) {
- throw new java.lang.NullPointerException();
- }
- internalGetMutableRedisConfigs().getMutableMap().put(key, value);
- return this;
+ public com.google.cloud.redis.v1beta1.TlsCertificate.Builder addServerCaCertsBuilder(
+ int index) {
+ return getServerCaCertsFieldBuilder()
+ .addBuilder(index, com.google.cloud.redis.v1beta1.TlsCertificate.getDefaultInstance());
}
/**
*
*
*
- * 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
+ * Output only. List of server CA certificates for the instance.
*
*
- * map<string, string> redis_configs = 16 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*/
- public Builder putAllRedisConfigs(java.util.Map values) {
- internalGetMutableRedisConfigs().getMutableMap().putAll(values);
- return this;
+ public java.util.List
+ getServerCaCertsBuilderList() {
+ return getServerCaCertsFieldBuilder().getBuilderList();
}
- private int tier_ = 0;
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.TlsCertificate,
+ com.google.cloud.redis.v1beta1.TlsCertificate.Builder,
+ com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>
+ getServerCaCertsFieldBuilder() {
+ if (serverCaCertsBuilder_ == null) {
+ serverCaCertsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.TlsCertificate,
+ com.google.cloud.redis.v1beta1.TlsCertificate.Builder,
+ com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>(
+ serverCaCerts_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ serverCaCerts_ = null;
+ }
+ return serverCaCertsBuilder_;
+ }
+
+ private int transitEncryptionMode_ = 0;
/**
*
*
*
- * Required. The service tier of the instance.
+ * Optional. The TLS mode of the Redis instance.
+ * If not provided, TLS is disabled for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The enum numeric value on the wire for tier.
+ * @return The enum numeric value on the wire for transitEncryptionMode.
*/
@java.lang.Override
- public int getTierValue() {
- return tier_;
+ public int getTransitEncryptionModeValue() {
+ return transitEncryptionMode_;
}
/**
*
*
*
- * Required. The service tier of the instance.
+ * Optional. The TLS mode of the Redis instance.
+ * If not provided, TLS is disabled for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @param value The enum numeric value on the wire for tier to set.
+ * @param value The enum numeric value on the wire for transitEncryptionMode to set.
* @return This builder for chaining.
*/
- public Builder setTierValue(int value) {
+ public Builder setTransitEncryptionModeValue(int value) {
- tier_ = value;
+ transitEncryptionMode_ = value;
onChanged();
return this;
}
@@ -5105,42 +6790,49 @@ public Builder setTierValue(int value) {
*
*
*
- * Required. The service tier of the instance.
+ * Optional. The TLS mode of the Redis instance.
+ * If not provided, TLS is disabled for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @return The tier.
+ * @return The transitEncryptionMode.
*/
@java.lang.Override
- public com.google.cloud.redis.v1beta1.Instance.Tier getTier() {
+ public com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode
+ getTransitEncryptionMode() {
@SuppressWarnings("deprecation")
- com.google.cloud.redis.v1beta1.Instance.Tier result =
- com.google.cloud.redis.v1beta1.Instance.Tier.valueOf(tier_);
- return result == null ? com.google.cloud.redis.v1beta1.Instance.Tier.UNRECOGNIZED : result;
+ com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode result =
+ com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.valueOf(
+ transitEncryptionMode_);
+ return result == null
+ ? com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode.UNRECOGNIZED
+ : result;
}
/**
*
*
*
- * Required. The service tier of the instance.
+ * Optional. The TLS mode of the Redis instance.
+ * If not provided, TLS is disabled for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
*
*
- * @param value The tier to set.
+ * @param value The transitEncryptionMode to set.
* @return This builder for chaining.
*/
- public Builder setTier(com.google.cloud.redis.v1beta1.Instance.Tier value) {
+ public Builder setTransitEncryptionMode(
+ com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode value) {
if (value == null) {
throw new NullPointerException();
}
- tier_ = value.getNumber();
+ transitEncryptionMode_ = value.getNumber();
onChanged();
return this;
}
@@ -5148,432 +6840,452 @@ public Builder setTier(com.google.cloud.redis.v1beta1.Instance.Tier value) {
*
*
*
- * Required. The service tier of the instance.
+ * Optional. The TLS mode of the Redis instance.
+ * If not provided, TLS is disabled for the instance.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.Tier tier = 17 [(.google.api.field_behavior) = REQUIRED];
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return This builder for chaining.
*/
- public Builder clearTier() {
+ public Builder clearTransitEncryptionMode() {
- tier_ = 0;
+ transitEncryptionMode_ = 0;
onChanged();
return this;
}
- private int memorySizeGb_;
+ private com.google.cloud.redis.v1beta1.MaintenancePolicy maintenancePolicy_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.MaintenancePolicy,
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder,
+ com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder>
+ maintenancePolicyBuilder_;
/**
*
*
*
- * Required. Redis memory size in GiB.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
- * @return The memorySizeGb.
+ * @return Whether the maintenancePolicy field is set.
*/
- @java.lang.Override
- public int getMemorySizeGb() {
- return memorySizeGb_;
+ public boolean hasMaintenancePolicy() {
+ return maintenancePolicyBuilder_ != null || maintenancePolicy_ != null;
}
/**
*
*
*
- * Required. Redis memory size in GiB.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*
- * @param value The memorySizeGb to set.
- * @return This builder for chaining.
+ * @return The maintenancePolicy.
*/
- public Builder setMemorySizeGb(int value) {
-
- memorySizeGb_ = value;
- onChanged();
- return this;
+ public com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy() {
+ if (maintenancePolicyBuilder_ == null) {
+ return maintenancePolicy_ == null
+ ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance()
+ : maintenancePolicy_;
+ } else {
+ return maintenancePolicyBuilder_.getMessage();
+ }
}
/**
*
*
*
- * Required. Redis memory size in GiB.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * int32 memory_size_gb = 18 [(.google.api.field_behavior) = REQUIRED];
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder clearMemorySizeGb() {
+ public Builder setMaintenancePolicy(com.google.cloud.redis.v1beta1.MaintenancePolicy value) {
+ if (maintenancePolicyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ maintenancePolicy_ = value;
+ onChanged();
+ } else {
+ maintenancePolicyBuilder_.setMessage(value);
+ }
- memorySizeGb_ = 0;
- onChanged();
return this;
}
-
- private java.lang.Object authorizedNetwork_ = "";
/**
*
*
*
- * 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.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The authorizedNetwork.
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- 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();
- authorizedNetwork_ = s;
- return s;
+ public Builder setMaintenancePolicy(
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder builderForValue) {
+ if (maintenancePolicyBuilder_ == null) {
+ maintenancePolicy_ = builderForValue.build();
+ onChanged();
} else {
- return (java.lang.String) ref;
+ maintenancePolicyBuilder_.setMessage(builderForValue.build());
}
+
+ return this;
}
/**
*
*
*
- * 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.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return The bytes for authorizedNetwork.
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- 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);
- authorizedNetwork_ = b;
- return b;
+ public Builder mergeMaintenancePolicy(com.google.cloud.redis.v1beta1.MaintenancePolicy value) {
+ if (maintenancePolicyBuilder_ == null) {
+ if (maintenancePolicy_ != null) {
+ maintenancePolicy_ =
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.newBuilder(maintenancePolicy_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ maintenancePolicy_ = value;
+ }
+ onChanged();
} else {
- return (com.google.protobuf.ByteString) ref;
+ maintenancePolicyBuilder_.mergeFrom(value);
}
+
+ return this;
}
/**
*
*
*
- * 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.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The authorizedNetwork to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setAuthorizedNetwork(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder clearMaintenancePolicy() {
+ if (maintenancePolicyBuilder_ == null) {
+ maintenancePolicy_ = null;
+ onChanged();
+ } else {
+ maintenancePolicy_ = null;
+ maintenancePolicyBuilder_ = null;
}
- authorizedNetwork_ = value;
- onChanged();
return this;
}
/**
*
*
*
- * 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.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @return This builder for chaining.
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder clearAuthorizedNetwork() {
+ public com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder getMaintenancePolicyBuilder() {
- authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork();
onChanged();
- return this;
+ return getMaintenancePolicyFieldBuilder().getBuilder();
}
/**
*
*
*
- * 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.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * string authorized_network = 20 [(.google.api.field_behavior) = OPTIONAL];
- *
- * @param value The bytes for authorizedNetwork to set.
- * @return This builder for chaining.
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
*/
- public Builder setAuthorizedNetworkBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder
+ getMaintenancePolicyOrBuilder() {
+ if (maintenancePolicyBuilder_ != null) {
+ return maintenancePolicyBuilder_.getMessageOrBuilder();
+ } else {
+ return maintenancePolicy_ == null
+ ? com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance()
+ : maintenancePolicy_;
}
- checkByteStringIsUtf8(value);
-
- authorizedNetwork_ = value;
- onChanged();
- return this;
}
-
- private java.lang.Object persistenceIamIdentity_ = "";
/**
*
*
*
- * 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.
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
*
*
- * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
*
- *
- * @return The persistenceIamIdentity.
*/
- 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 {
- return (java.lang.String) ref;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.MaintenancePolicy,
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder,
+ com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder>
+ getMaintenancePolicyFieldBuilder() {
+ if (maintenancePolicyBuilder_ == null) {
+ maintenancePolicyBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.MaintenancePolicy,
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder,
+ com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder>(
+ getMaintenancePolicy(), getParentForChildren(), isClean());
+ maintenancePolicy_ = null;
}
+ return maintenancePolicyBuilder_;
}
+
+ private com.google.cloud.redis.v1beta1.MaintenanceSchedule maintenanceSchedule_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule,
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder,
+ com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder>
+ maintenanceScheduleBuilder_;
/**
*
*
*
- * 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.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
- * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @return The bytes for persistenceIamIdentity.
- */
- 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 {
- return (com.google.protobuf.ByteString) ref;
- }
+ * @return Whether the maintenanceSchedule field is set.
+ */
+ public boolean hasMaintenanceSchedule() {
+ return maintenanceScheduleBuilder_ != null || maintenanceSchedule_ != null;
}
/**
*
*
*
- * 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.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
- * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
*
- * @param value The persistenceIamIdentity to set.
- * @return This builder for chaining.
+ * @return The maintenanceSchedule.
*/
- public Builder setPersistenceIamIdentity(java.lang.String value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule() {
+ if (maintenanceScheduleBuilder_ == null) {
+ return maintenanceSchedule_ == null
+ ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance()
+ : maintenanceSchedule_;
+ } else {
+ return maintenanceScheduleBuilder_.getMessage();
}
-
- persistenceIamIdentity_ = value;
- onChanged();
- return this;
}
/**
*
*
*
- * 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.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
- * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return This builder for chaining.
*/
- public Builder clearPersistenceIamIdentity() {
+ public Builder setMaintenanceSchedule(
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule value) {
+ if (maintenanceScheduleBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ maintenanceSchedule_ = value;
+ onChanged();
+ } else {
+ maintenanceScheduleBuilder_.setMessage(value);
+ }
- persistenceIamIdentity_ = getDefaultInstance().getPersistenceIamIdentity();
- onChanged();
return this;
}
/**
*
*
*
- * 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.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
- * string persistence_iam_identity = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @param value The bytes for persistenceIamIdentity to set.
- * @return This builder for chaining.
*/
- public Builder setPersistenceIamIdentityBytes(com.google.protobuf.ByteString value) {
- if (value == null) {
- throw new NullPointerException();
+ public Builder setMaintenanceSchedule(
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder builderForValue) {
+ if (maintenanceScheduleBuilder_ == null) {
+ maintenanceSchedule_ = builderForValue.build();
+ onChanged();
+ } else {
+ maintenanceScheduleBuilder_.setMessage(builderForValue.build());
}
- checkByteStringIsUtf8(value);
- persistenceIamIdentity_ = value;
- onChanged();
return this;
}
-
- private int connectMode_ = 0;
/**
*
*
*
- * Optional. The network connect mode of the Redis instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return The enum numeric value on the wire for connectMode.
*/
- @java.lang.Override
- public int getConnectModeValue() {
- return connectMode_;
+ public Builder mergeMaintenanceSchedule(
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule value) {
+ if (maintenanceScheduleBuilder_ == null) {
+ if (maintenanceSchedule_ != null) {
+ maintenanceSchedule_ =
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule.newBuilder(maintenanceSchedule_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ maintenanceSchedule_ = value;
+ }
+ onChanged();
+ } else {
+ maintenanceScheduleBuilder_.mergeFrom(value);
+ }
+
+ return this;
}
/**
*
*
*
- * Optional. The network connect mode of the Redis instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @param value The enum numeric value on the wire for connectMode to set.
- * @return This builder for chaining.
*/
- public Builder setConnectModeValue(int value) {
+ public Builder clearMaintenanceSchedule() {
+ if (maintenanceScheduleBuilder_ == null) {
+ maintenanceSchedule_ = null;
+ onChanged();
+ } else {
+ maintenanceSchedule_ = null;
+ maintenanceScheduleBuilder_ = null;
+ }
- connectMode_ = value;
- onChanged();
return this;
}
/**
*
*
*
- * Optional. The network connect mode of the Redis instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return The connectMode.
*/
- @java.lang.Override
- public com.google.cloud.redis.v1beta1.Instance.ConnectMode getConnectMode() {
- @SuppressWarnings("deprecation")
- com.google.cloud.redis.v1beta1.Instance.ConnectMode result =
- com.google.cloud.redis.v1beta1.Instance.ConnectMode.valueOf(connectMode_);
- return result == null
- ? com.google.cloud.redis.v1beta1.Instance.ConnectMode.UNRECOGNIZED
- : result;
+ public com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder
+ getMaintenanceScheduleBuilder() {
+
+ onChanged();
+ return getMaintenanceScheduleFieldBuilder().getBuilder();
}
/**
*
*
*
- * Optional. The network connect mode of the Redis instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @param value The connectMode to set.
- * @return This builder for chaining.
*/
- public Builder setConnectMode(com.google.cloud.redis.v1beta1.Instance.ConnectMode value) {
- if (value == null) {
- throw new NullPointerException();
+ public com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder
+ getMaintenanceScheduleOrBuilder() {
+ if (maintenanceScheduleBuilder_ != null) {
+ return maintenanceScheduleBuilder_.getMessageOrBuilder();
+ } else {
+ return maintenanceSchedule_ == null
+ ? com.google.cloud.redis.v1beta1.MaintenanceSchedule.getDefaultInstance()
+ : maintenanceSchedule_;
}
-
- connectMode_ = value.getNumber();
- onChanged();
- return this;
}
/**
*
*
*
- * Optional. The network connect mode of the Redis instance.
- * If not provided, the connect mode defaults to DIRECT_PEERING.
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
*
*
*
- * .google.cloud.redis.v1beta1.Instance.ConnectMode connect_mode = 22 [(.google.api.field_behavior) = OPTIONAL];
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
*
- *
- * @return This builder for chaining.
*/
- public Builder clearConnectMode() {
-
- connectMode_ = 0;
- onChanged();
- return this;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule,
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder,
+ com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder>
+ getMaintenanceScheduleFieldBuilder() {
+ if (maintenanceScheduleBuilder_ == null) {
+ maintenanceScheduleBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule,
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule.Builder,
+ com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder>(
+ getMaintenanceSchedule(), getParentForChildren(), isClean());
+ maintenanceSchedule_ = null;
+ }
+ return maintenanceScheduleBuilder_;
}
private int replicaCount_;
@@ -5581,9 +7293,11 @@ public Builder clearConnectMode() {
*
*
*
- * 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.
+ * Optional. The number of replica nodes. The valid range for the Standard Tier with
+ * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
+ * enabled for a Standard Tier instance, the only valid value is 1 and the
+ * default is 1. The valid value for basic tier is 0 and the default is also
+ * 0.
*
*
* int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
@@ -5598,9 +7312,11 @@ public int getReplicaCount() {
*
*
*
- * Optional. The number of replica nodes. Valid range for standard tier
- * is [1-5] and defaults to 1. Valid value for basic tier is 0 and defaults
- * to 0.
+ * Optional. The number of replica nodes. The valid range for the Standard Tier with
+ * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
+ * enabled for a Standard Tier instance, the only valid value is 1 and the
+ * default is 1. The valid value for basic tier is 0 and the default is also
+ * 0.
*
*
* int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
@@ -5618,9 +7334,11 @@ public Builder setReplicaCount(int value) {
*
*
*
- * Optional. The number of replica nodes. Valid range for standard tier
- * is [1-5] and defaults to 1. Valid value for basic tier is 0 and defaults
- * to 0.
+ * Optional. The number of replica nodes. The valid range for the Standard Tier with
+ * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
+ * enabled for a Standard Tier instance, the only valid value is 1 and the
+ * default is 1. The valid value for basic tier is 0 and the default is also
+ * 0.
*
*
* int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
@@ -5638,9 +7356,9 @@ public Builder clearReplicaCount() {
java.util.Collections.emptyList();
private void ensureNodesIsMutable() {
- if (!((bitField0_ & 0x00000004) != 0)) {
+ if (!((bitField0_ & 0x00000008) != 0)) {
nodes_ = new java.util.ArrayList(nodes_);
- bitField0_ |= 0x00000004;
+ bitField0_ |= 0x00000008;
}
}
@@ -5877,7 +7595,7 @@ public Builder addAllNodes(
public Builder clearNodes() {
if (nodesBuilder_ == null) {
nodes_ = java.util.Collections.emptyList();
- bitField0_ = (bitField0_ & ~0x00000004);
+ bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
nodesBuilder_.clear();
@@ -6012,7 +7730,7 @@ public java.util.List getNodesB
com.google.cloud.redis.v1beta1.NodeInfo,
com.google.cloud.redis.v1beta1.NodeInfo.Builder,
com.google.cloud.redis.v1beta1.NodeInfoOrBuilder>(
- nodes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean());
+ nodes_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
nodes_ = null;
}
return nodesBuilder_;
@@ -6199,7 +7917,8 @@ public Builder clearReadEndpointPort() {
*
*
*
- * Optional. Read replica mode.
+ * Optional. Read replica mode. Can only be specified when trying to create the
+ * instance.
*
*
*
@@ -6216,7 +7935,8 @@ public int getReadReplicasModeValue() {
*
*
*
- * Optional. Read replica mode.
+ * Optional. Read replica mode. Can only be specified when trying to create the
+ * instance.
*
*
*
@@ -6236,7 +7956,8 @@ public Builder setReadReplicasModeValue(int value) {
*
*
*
- * Optional. Read replica mode.
+ * Optional. Read replica mode. Can only be specified when trying to create the
+ * instance.
*
*
*
@@ -6258,7 +7979,8 @@ public com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasM
*
*
*
- * Optional. Read replica mode.
+ * Optional. Read replica mode. Can only be specified when trying to create the
+ * instance.
*
*
*
@@ -6282,7 +8004,8 @@ public Builder setReadReplicasMode(
*
*
*
- * Optional. Read replica mode.
+ * Optional. Read replica mode. Can only be specified when trying to create the
+ * instance.
*
*
*
@@ -6298,6 +8021,211 @@ public Builder clearReadReplicasMode() {
return this;
}
+ private com.google.cloud.redis.v1beta1.PersistenceConfig persistenceConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.PersistenceConfig,
+ com.google.cloud.redis.v1beta1.PersistenceConfig.Builder,
+ com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder>
+ persistenceConfigBuilder_;
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the persistenceConfig field is set.
+ */
+ public boolean hasPersistenceConfig() {
+ return persistenceConfigBuilder_ != null || persistenceConfig_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The persistenceConfig.
+ */
+ public com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig() {
+ if (persistenceConfigBuilder_ == null) {
+ return persistenceConfig_ == null
+ ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance()
+ : persistenceConfig_;
+ } else {
+ return persistenceConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPersistenceConfig(com.google.cloud.redis.v1beta1.PersistenceConfig value) {
+ if (persistenceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ persistenceConfig_ = value;
+ onChanged();
+ } else {
+ persistenceConfigBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setPersistenceConfig(
+ com.google.cloud.redis.v1beta1.PersistenceConfig.Builder builderForValue) {
+ if (persistenceConfigBuilder_ == null) {
+ persistenceConfig_ = builderForValue.build();
+ onChanged();
+ } else {
+ persistenceConfigBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder mergePersistenceConfig(com.google.cloud.redis.v1beta1.PersistenceConfig value) {
+ if (persistenceConfigBuilder_ == null) {
+ if (persistenceConfig_ != null) {
+ persistenceConfig_ =
+ com.google.cloud.redis.v1beta1.PersistenceConfig.newBuilder(persistenceConfig_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ persistenceConfig_ = value;
+ }
+ onChanged();
+ } else {
+ persistenceConfigBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearPersistenceConfig() {
+ if (persistenceConfigBuilder_ == null) {
+ persistenceConfig_ = null;
+ onChanged();
+ } else {
+ persistenceConfig_ = null;
+ persistenceConfigBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.PersistenceConfig.Builder getPersistenceConfigBuilder() {
+
+ onChanged();
+ return getPersistenceConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder
+ getPersistenceConfigOrBuilder() {
+ if (persistenceConfigBuilder_ != null) {
+ return persistenceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return persistenceConfig_ == null
+ ? com.google.cloud.redis.v1beta1.PersistenceConfig.getDefaultInstance()
+ : persistenceConfig_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.PersistenceConfig,
+ com.google.cloud.redis.v1beta1.PersistenceConfig.Builder,
+ com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder>
+ getPersistenceConfigFieldBuilder() {
+ if (persistenceConfigBuilder_ == null) {
+ persistenceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.PersistenceConfig,
+ com.google.cloud.redis.v1beta1.PersistenceConfig.Builder,
+ com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder>(
+ getPersistenceConfig(), getParentForChildren(), isClean());
+ persistenceConfig_ = null;
+ }
+ return persistenceConfigBuilder_;
+ }
+
@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/InstanceAuthString.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java
new file mode 100644
index 00000000..a293beb5
--- /dev/null
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthString.java
@@ -0,0 +1,636 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ *
+ * Instance AUTH string details.
+ *
+ *
+ * Protobuf type {@code google.cloud.redis.v1beta1.InstanceAuthString}
+ */
+public final class InstanceAuthString extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.InstanceAuthString)
+ InstanceAuthStringOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use InstanceAuthString.newBuilder() to construct.
+ private InstanceAuthString(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private InstanceAuthString() {
+ authString_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new InstanceAuthString();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private InstanceAuthString(
+ 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();
+
+ authString_ = 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_InstanceAuthString_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.redis.v1beta1.InstanceAuthString.class,
+ com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class);
+ }
+
+ public static final int AUTH_STRING_FIELD_NUMBER = 1;
+ private volatile java.lang.Object authString_;
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @return The authString.
+ */
+ @java.lang.Override
+ public java.lang.String getAuthString() {
+ java.lang.Object ref = authString_;
+ 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();
+ authString_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @return The bytes for authString.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getAuthStringBytes() {
+ java.lang.Object ref = authString_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ authString_ = 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(authString_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authString_);
+ }
+ 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(authString_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, authString_);
+ }
+ 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.InstanceAuthString)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1beta1.InstanceAuthString other =
+ (com.google.cloud.redis.v1beta1.InstanceAuthString) obj;
+
+ if (!getAuthString().equals(other.getAuthString())) 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) + AUTH_STRING_FIELD_NUMBER;
+ hash = (53 * hash) + getAuthString().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1beta1.InstanceAuthString parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.InstanceAuthString 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.InstanceAuthString parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.InstanceAuthString 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.InstanceAuthString parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.InstanceAuthString 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.InstanceAuthString parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.InstanceAuthString 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.InstanceAuthString parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.InstanceAuthString 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.InstanceAuthString 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.InstanceAuthString 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.InstanceAuthString 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;
+ }
+ /**
+ *
+ *
+ *
+ * Instance AUTH string details.
+ *
+ *
+ * Protobuf type {@code google.cloud.redis.v1beta1.InstanceAuthString}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.InstanceAuthString)
+ com.google.cloud.redis.v1beta1.InstanceAuthStringOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.redis.v1beta1.InstanceAuthString.class,
+ com.google.cloud.redis.v1beta1.InstanceAuthString.Builder.class);
+ }
+
+ // Construct using com.google.cloud.redis.v1beta1.InstanceAuthString.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ authString_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_InstanceAuthString_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.InstanceAuthString getDefaultInstanceForType() {
+ return com.google.cloud.redis.v1beta1.InstanceAuthString.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.InstanceAuthString build() {
+ com.google.cloud.redis.v1beta1.InstanceAuthString result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.InstanceAuthString buildPartial() {
+ com.google.cloud.redis.v1beta1.InstanceAuthString result =
+ new com.google.cloud.redis.v1beta1.InstanceAuthString(this);
+ result.authString_ = authString_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.redis.v1beta1.InstanceAuthString) {
+ return mergeFrom((com.google.cloud.redis.v1beta1.InstanceAuthString) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.redis.v1beta1.InstanceAuthString other) {
+ if (other == com.google.cloud.redis.v1beta1.InstanceAuthString.getDefaultInstance())
+ return this;
+ if (!other.getAuthString().isEmpty()) {
+ authString_ = other.authString_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.redis.v1beta1.InstanceAuthString parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage =
+ (com.google.cloud.redis.v1beta1.InstanceAuthString) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object authString_ = "";
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @return The authString.
+ */
+ public java.lang.String getAuthString() {
+ java.lang.Object ref = authString_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ authString_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @return The bytes for authString.
+ */
+ public com.google.protobuf.ByteString getAuthStringBytes() {
+ java.lang.Object ref = authString_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ authString_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @param value The authString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAuthString(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ authString_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAuthString() {
+
+ authString_ = getDefaultInstance().getAuthString();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @param value The bytes for authString to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAuthStringBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ authString_ = 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.InstanceAuthString)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.InstanceAuthString)
+ private static final com.google.cloud.redis.v1beta1.InstanceAuthString DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.InstanceAuthString();
+ }
+
+ public static com.google.cloud.redis.v1beta1.InstanceAuthString getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public InstanceAuthString parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new InstanceAuthString(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.InstanceAuthString getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java
new file mode 100644
index 00000000..0e041967
--- /dev/null
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/InstanceAuthStringOrBuilder.java
@@ -0,0 +1,50 @@
+/*
+ * 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;
+
+public interface InstanceAuthStringOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.InstanceAuthString)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @return The authString.
+ */
+ java.lang.String getAuthString();
+ /**
+ *
+ *
+ *
+ * AUTH string set on the instance.
+ *
+ *
+ * string auth_string = 1;
+ *
+ * @return The bytes for authString.
+ */
+ com.google.protobuf.ByteString getAuthStringBytes();
+}
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 d9d20790..5cf4f707 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,10 +33,8 @@ 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];
@@ -54,10 +52,8 @@ 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];
@@ -715,9 +711,207 @@ public interface InstanceOrBuilder
*
*
*
- * 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.
+ * Optional. Indicates whether OSS Redis AUTH is enabled for the instance. If set to
+ * "true" AUTH is enabled on the instance. Default value is "false" meaning
+ * AUTH is disabled.
+ *
+ *
+ * bool auth_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The authEnabled.
+ */
+ boolean getAuthEnabled();
+
+ /**
+ *
+ *
+ *
+ * Output only. List of server CA certificates for the instance.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List getServerCaCertsList();
+ /**
+ *
+ *
+ *
+ * Output only. List of server CA certificates for the instance.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.redis.v1beta1.TlsCertificate getServerCaCerts(int index);
+ /**
+ *
+ *
+ *
+ * Output only. List of server CA certificates for the instance.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ int getServerCaCertsCount();
+ /**
+ *
+ *
+ *
+ * Output only. List of server CA certificates for the instance.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ java.util.List extends com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder>
+ getServerCaCertsOrBuilderList();
+ /**
+ *
+ *
+ *
+ * Output only. List of server CA certificates for the instance.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.TlsCertificate server_ca_certs = 25 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.redis.v1beta1.TlsCertificateOrBuilder getServerCaCertsOrBuilder(int index);
+
+ /**
+ *
+ *
+ *
+ * Optional. The TLS mode of the Redis instance.
+ * If not provided, TLS is disabled for the instance.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The enum numeric value on the wire for transitEncryptionMode.
+ */
+ int getTransitEncryptionModeValue();
+ /**
+ *
+ *
+ *
+ * Optional. The TLS mode of the Redis instance.
+ * If not provided, TLS is disabled for the instance.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.Instance.TransitEncryptionMode transit_encryption_mode = 26 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The transitEncryptionMode.
+ */
+ com.google.cloud.redis.v1beta1.Instance.TransitEncryptionMode getTransitEncryptionMode();
+
+ /**
+ *
+ *
+ *
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the maintenancePolicy field is set.
+ */
+ boolean hasMaintenancePolicy();
+ /**
+ *
+ *
+ *
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The maintenancePolicy.
+ */
+ com.google.cloud.redis.v1beta1.MaintenancePolicy getMaintenancePolicy();
+ /**
+ *
+ *
+ *
+ * Optional. The maintenance policy for the instance. If not provided,
+ * maintenance events can be performed at any time.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.MaintenancePolicy maintenance_policy = 27 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the maintenanceSchedule field is set.
+ */
+ boolean hasMaintenanceSchedule();
+ /**
+ *
+ *
+ *
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The maintenanceSchedule.
+ */
+ com.google.cloud.redis.v1beta1.MaintenanceSchedule getMaintenanceSchedule();
+ /**
+ *
+ *
+ *
+ * Output only. Date and time of upcoming maintenance events which have been
+ * scheduled.
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.MaintenanceSchedule maintenance_schedule = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.cloud.redis.v1beta1.MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder();
+
+ /**
+ *
+ *
+ *
+ * Optional. The number of replica nodes. The valid range for the Standard Tier with
+ * read replicas enabled is [1-5] and defaults to 2. If read replicas are not
+ * enabled for a Standard Tier instance, the only valid value is 1 and the
+ * default is 1. The valid value for basic tier is 0 and the default is also
+ * 0.
*
*
* int32 replica_count = 31 [(.google.api.field_behavior) = OPTIONAL];
@@ -837,7 +1031,8 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. Read replica mode.
+ * Optional. Read replica mode. Can only be specified when trying to create the
+ * instance.
*
*
*
@@ -851,7 +1046,8 @@ public interface InstanceOrBuilder
*
*
*
- * Optional. Read replica mode.
+ * Optional. Read replica mode. Can only be specified when trying to create the
+ * instance.
*
*
*
@@ -861,4 +1057,45 @@ public interface InstanceOrBuilder
* @return The readReplicasMode.
*/
com.google.cloud.redis.v1beta1.Instance.ReadReplicasMode getReadReplicasMode();
+
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return Whether the persistenceConfig field is set.
+ */
+ boolean hasPersistenceConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ *
+ * @return The persistenceConfig.
+ */
+ com.google.cloud.redis.v1beta1.PersistenceConfig getPersistenceConfig();
+ /**
+ *
+ *
+ *
+ * Optional. Persistence configuration parameters
+ *
+ *
+ *
+ * .google.cloud.redis.v1beta1.PersistenceConfig persistence_config = 37 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ com.google.cloud.redis.v1beta1.PersistenceConfigOrBuilder getPersistenceConfigOrBuilder();
}
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 100e6015..2f5303df 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,8 +22,7 @@
*
*
*
- * 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}
@@ -212,8 +211,7 @@ 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;
@@ -237,8 +235,7 @@ 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;
@@ -439,8 +436,7 @@ 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}
@@ -807,8 +803,7 @@ 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;
@@ -831,8 +826,7 @@ 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;
@@ -855,8 +849,7 @@ 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;
@@ -878,8 +871,7 @@ 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;
@@ -897,8 +889,7 @@ 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 421e1eb4..f9704d18 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,8 +79,7 @@ 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;
@@ -93,8 +92,7 @@ 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 11985b9c..7c643e69 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,8 +22,7 @@
*
*
*
- * 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}
@@ -558,8 +557,7 @@ 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}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java
new file mode 100644
index 00000000..5bb15d8b
--- /dev/null
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicy.java
@@ -0,0 +1,1840 @@
+/*
+ * 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;
+
+/**
+ *
+ *
+ *
+ * Maintenance policy for an instance.
+ *
+ *
+ * Protobuf type {@code google.cloud.redis.v1beta1.MaintenancePolicy}
+ */
+public final class MaintenancePolicy extends com.google.protobuf.GeneratedMessageV3
+ implements
+ // @@protoc_insertion_point(message_implements:google.cloud.redis.v1beta1.MaintenancePolicy)
+ MaintenancePolicyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MaintenancePolicy.newBuilder() to construct.
+ private MaintenancePolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+
+ private MaintenancePolicy() {
+ description_ = "";
+ weeklyMaintenanceWindow_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+ return new MaintenancePolicy();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+ return this.unknownFields;
+ }
+
+ private MaintenancePolicy(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ 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:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (createTime_ != null) {
+ subBuilder = createTime_.toBuilder();
+ }
+ createTime_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(createTime_);
+ createTime_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18:
+ {
+ com.google.protobuf.Timestamp.Builder subBuilder = null;
+ if (updateTime_ != null) {
+ subBuilder = updateTime_.toBuilder();
+ }
+ updateTime_ =
+ input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(updateTime_);
+ updateTime_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26:
+ {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ description_ = s;
+ break;
+ }
+ case 34:
+ {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ weeklyMaintenanceWindow_ =
+ new java.util.ArrayList<
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow>();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ weeklyMaintenanceWindow_.add(
+ input.readMessage(
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.parser(),
+ extensionRegistry));
+ 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 {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ weeklyMaintenanceWindow_ = java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_);
+ }
+ 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_MaintenancePolicy_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.class,
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class);
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 1;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The createTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ public static final int UPDATE_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp updateTime_;
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateTime() {
+ return updateTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The updateTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ return getUpdateTime();
+ }
+
+ public static final int DESCRIPTION_FIELD_NUMBER = 3;
+ private volatile java.lang.Object description_;
+ /**
+ *
+ *
+ *
+ * Optional. Description of what this policy is for. Create/Update methods
+ * return INVALID_ARGUMENT if the length is greater than 512.
+ *
+ *
+ * string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The description.
+ */
+ @java.lang.Override
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ 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();
+ description_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Description of what this policy is for. Create/Update methods
+ * return INVALID_ARGUMENT if the length is greater than 512.
+ *
+ *
+ * string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for description.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER = 4;
+ private java.util.List
+ weeklyMaintenanceWindow_;
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List
+ getWeeklyMaintenanceWindowList() {
+ return weeklyMaintenanceWindow_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>
+ getWeeklyMaintenanceWindowOrBuilderList() {
+ return weeklyMaintenanceWindow_;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public int getWeeklyMaintenanceWindowCount() {
+ return weeklyMaintenanceWindow_.size();
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(
+ int index) {
+ return weeklyMaintenanceWindow_.get(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder
+ getWeeklyMaintenanceWindowOrBuilder(int index) {
+ return weeklyMaintenanceWindow_.get(index);
+ }
+
+ 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 (createTime_ != null) {
+ output.writeMessage(1, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ output.writeMessage(2, getUpdateTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_);
+ }
+ for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) {
+ output.writeMessage(4, weeklyMaintenanceWindow_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (createTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCreateTime());
+ }
+ if (updateTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_);
+ }
+ for (int i = 0; i < weeklyMaintenanceWindow_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, weeklyMaintenanceWindow_.get(i));
+ }
+ 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.MaintenancePolicy)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1beta1.MaintenancePolicy other =
+ (com.google.cloud.redis.v1beta1.MaintenancePolicy) obj;
+
+ if (hasCreateTime() != other.hasCreateTime()) return false;
+ if (hasCreateTime()) {
+ if (!getCreateTime().equals(other.getCreateTime())) return false;
+ }
+ if (hasUpdateTime() != other.hasUpdateTime()) return false;
+ if (hasUpdateTime()) {
+ if (!getUpdateTime().equals(other.getUpdateTime())) return false;
+ }
+ if (!getDescription().equals(other.getDescription())) return false;
+ if (!getWeeklyMaintenanceWindowList().equals(other.getWeeklyMaintenanceWindowList()))
+ 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();
+ if (hasCreateTime()) {
+ hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateTime().hashCode();
+ }
+ if (hasUpdateTime()) {
+ hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateTime().hashCode();
+ }
+ hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getDescription().hashCode();
+ if (getWeeklyMaintenanceWindowCount() > 0) {
+ hash = (37 * hash) + WEEKLY_MAINTENANCE_WINDOW_FIELD_NUMBER;
+ hash = (53 * hash) + getWeeklyMaintenanceWindowList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1beta1.MaintenancePolicy parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.MaintenancePolicy 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.MaintenancePolicy parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.MaintenancePolicy 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.MaintenancePolicy parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.cloud.redis.v1beta1.MaintenancePolicy 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.MaintenancePolicy parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.MaintenancePolicy 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.MaintenancePolicy parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.cloud.redis.v1beta1.MaintenancePolicy 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.MaintenancePolicy 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.MaintenancePolicy 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.MaintenancePolicy 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;
+ }
+ /**
+ *
+ *
+ *
+ * Maintenance policy for an instance.
+ *
+ *
+ * Protobuf type {@code google.cloud.redis.v1beta1.MaintenancePolicy}
+ */
+ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ implements
+ // @@protoc_insertion_point(builder_implements:google.cloud.redis.v1beta1.MaintenancePolicy)
+ com.google.cloud.redis.v1beta1.MaintenancePolicyOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.class,
+ com.google.cloud.redis.v1beta1.MaintenancePolicy.Builder.class);
+ }
+
+ // Construct using com.google.cloud.redis.v1beta1.MaintenancePolicy.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+ getWeeklyMaintenanceWindowFieldBuilder();
+ }
+ }
+
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = null;
+ } else {
+ updateTime_ = null;
+ updateTimeBuilder_ = null;
+ }
+ description_ = "";
+
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ weeklyMaintenanceWindow_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ weeklyMaintenanceWindowBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+ return com.google.cloud.redis.v1beta1.CloudRedisServiceBetaProto
+ .internal_static_google_cloud_redis_v1beta1_MaintenancePolicy_descriptor;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.MaintenancePolicy getDefaultInstanceForType() {
+ return com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.MaintenancePolicy build() {
+ com.google.cloud.redis.v1beta1.MaintenancePolicy result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.MaintenancePolicy buildPartial() {
+ com.google.cloud.redis.v1beta1.MaintenancePolicy result =
+ new com.google.cloud.redis.v1beta1.MaintenancePolicy(this);
+ int from_bitField0_ = bitField0_;
+ if (createTimeBuilder_ == null) {
+ result.createTime_ = createTime_;
+ } else {
+ result.createTime_ = createTimeBuilder_.build();
+ }
+ if (updateTimeBuilder_ == null) {
+ result.updateTime_ = updateTime_;
+ } else {
+ result.updateTime_ = updateTimeBuilder_.build();
+ }
+ result.description_ = description_;
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ weeklyMaintenanceWindow_ =
+ java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindow_;
+ } else {
+ result.weeklyMaintenanceWindow_ = weeklyMaintenanceWindowBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.setField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+
+ @java.lang.Override
+ public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.google.cloud.redis.v1beta1.MaintenancePolicy) {
+ return mergeFrom((com.google.cloud.redis.v1beta1.MaintenancePolicy) other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.google.cloud.redis.v1beta1.MaintenancePolicy other) {
+ if (other == com.google.cloud.redis.v1beta1.MaintenancePolicy.getDefaultInstance())
+ return this;
+ if (other.hasCreateTime()) {
+ mergeCreateTime(other.getCreateTime());
+ }
+ if (other.hasUpdateTime()) {
+ mergeUpdateTime(other.getUpdateTime());
+ }
+ if (!other.getDescription().isEmpty()) {
+ description_ = other.description_;
+ onChanged();
+ }
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ if (!other.weeklyMaintenanceWindow_.isEmpty()) {
+ if (weeklyMaintenanceWindow_.isEmpty()) {
+ weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureWeeklyMaintenanceWindowIsMutable();
+ weeklyMaintenanceWindow_.addAll(other.weeklyMaintenanceWindow_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.weeklyMaintenanceWindow_.isEmpty()) {
+ if (weeklyMaintenanceWindowBuilder_.isEmpty()) {
+ weeklyMaintenanceWindowBuilder_.dispose();
+ weeklyMaintenanceWindowBuilder_ = null;
+ weeklyMaintenanceWindow_ = other.weeklyMaintenanceWindow_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ weeklyMaintenanceWindowBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+ ? getWeeklyMaintenanceWindowFieldBuilder()
+ : null;
+ } else {
+ weeklyMaintenanceWindowBuilder_.addAllMessages(other.weeklyMaintenanceWindow_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.google.cloud.redis.v1beta1.MaintenancePolicy parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.google.cloud.redis.v1beta1.MaintenancePolicy) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private int bitField0_;
+
+ 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 when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the createTime field is set.
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.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 when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ createTime_ = value;
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) {
+ if (createTimeBuilder_ == null) {
+ if (createTime_ != null) {
+ createTime_ =
+ com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial();
+ } else {
+ createTime_ = value;
+ }
+ onChanged();
+ } else {
+ createTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : createTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was created.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ 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 com.google.protobuf.Timestamp updateTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ updateTimeBuilder_;
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the updateTime field is set.
+ */
+ public boolean hasUpdateTime() {
+ return updateTimeBuilder_ != null || updateTime_ != null;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The updateTime.
+ */
+ public com.google.protobuf.Timestamp getUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ } else {
+ return updateTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateTime_ = value;
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) {
+ if (updateTimeBuilder_ == null) {
+ if (updateTime_ != null) {
+ updateTime_ =
+ com.google.protobuf.Timestamp.newBuilder(updateTime_).mergeFrom(value).buildPartial();
+ } else {
+ updateTime_ = value;
+ }
+ onChanged();
+ } else {
+ updateTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearUpdateTime() {
+ if (updateTimeBuilder_ == null) {
+ updateTime_ = null;
+ onChanged();
+ } else {
+ updateTime_ = null;
+ updateTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() {
+
+ onChanged();
+ return getUpdateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() {
+ if (updateTimeBuilder_ != null) {
+ return updateTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return updateTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : updateTime_;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Output only. The time when the policy was last updated.
+ *
+ *
+ *
+ * .google.protobuf.Timestamp update_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getUpdateTimeFieldBuilder() {
+ if (updateTimeBuilder_ == null) {
+ updateTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getUpdateTime(), getParentForChildren(), isClean());
+ updateTime_ = null;
+ }
+ return updateTimeBuilder_;
+ }
+
+ private java.lang.Object description_ = "";
+ /**
+ *
+ *
+ *
+ * Optional. Description of what this policy is for. Create/Update methods
+ * return INVALID_ARGUMENT if the length is greater than 512.
+ *
+ *
+ * string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The description.
+ */
+ public java.lang.String getDescription() {
+ java.lang.Object ref = description_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ description_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Description of what this policy is for. Create/Update methods
+ * return INVALID_ARGUMENT if the length is greater than 512.
+ *
+ *
+ * string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return The bytes for description.
+ */
+ public com.google.protobuf.ByteString getDescriptionBytes() {
+ java.lang.Object ref = description_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ description_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Description of what this policy is for. Create/Update methods
+ * return INVALID_ARGUMENT if the length is greater than 512.
+ *
+ *
+ * string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescription(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Description of what this policy is for. Create/Update methods
+ * return INVALID_ARGUMENT if the length is greater than 512.
+ *
+ *
+ * string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDescription() {
+
+ description_ = getDefaultInstance().getDescription();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Description of what this policy is for. Create/Update methods
+ * return INVALID_ARGUMENT if the length is greater than 512.
+ *
+ *
+ * string description = 3 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ * @param value The bytes for description to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ description_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List
+ weeklyMaintenanceWindow_ = java.util.Collections.emptyList();
+
+ private void ensureWeeklyMaintenanceWindowIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ weeklyMaintenanceWindow_ =
+ new java.util.ArrayList(
+ weeklyMaintenanceWindow_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow,
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder,
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>
+ weeklyMaintenanceWindowBuilder_;
+
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ getWeeklyMaintenanceWindowList() {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_);
+ } else {
+ return weeklyMaintenanceWindowBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public int getWeeklyMaintenanceWindowCount() {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ return weeklyMaintenanceWindow_.size();
+ } else {
+ return weeklyMaintenanceWindowBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow getWeeklyMaintenanceWindow(
+ int index) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ return weeklyMaintenanceWindow_.get(index);
+ } else {
+ return weeklyMaintenanceWindowBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setWeeklyMaintenanceWindow(
+ int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWeeklyMaintenanceWindowIsMutable();
+ weeklyMaintenanceWindow_.set(index, value);
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder setWeeklyMaintenanceWindow(
+ int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ ensureWeeklyMaintenanceWindowIsMutable();
+ weeklyMaintenanceWindow_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addWeeklyMaintenanceWindow(
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWeeklyMaintenanceWindowIsMutable();
+ weeklyMaintenanceWindow_.add(value);
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addWeeklyMaintenanceWindow(
+ int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow value) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureWeeklyMaintenanceWindowIsMutable();
+ weeklyMaintenanceWindow_.add(index, value);
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addWeeklyMaintenanceWindow(
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ ensureWeeklyMaintenanceWindowIsMutable();
+ weeklyMaintenanceWindow_.add(builderForValue.build());
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addWeeklyMaintenanceWindow(
+ int index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder builderForValue) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ ensureWeeklyMaintenanceWindowIsMutable();
+ weeklyMaintenanceWindow_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder addAllWeeklyMaintenanceWindow(
+ java.lang.Iterable extends com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow>
+ values) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ ensureWeeklyMaintenanceWindowIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, weeklyMaintenanceWindow_);
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder clearWeeklyMaintenanceWindow() {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ weeklyMaintenanceWindow_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public Builder removeWeeklyMaintenanceWindow(int index) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ ensureWeeklyMaintenanceWindowIsMutable();
+ weeklyMaintenanceWindow_.remove(index);
+ onChanged();
+ } else {
+ weeklyMaintenanceWindowBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder
+ getWeeklyMaintenanceWindowBuilder(int index) {
+ return getWeeklyMaintenanceWindowFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder
+ getWeeklyMaintenanceWindowOrBuilder(int index) {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ return weeklyMaintenanceWindow_.get(index);
+ } else {
+ return weeklyMaintenanceWindowBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List extends com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>
+ getWeeklyMaintenanceWindowOrBuilderList() {
+ if (weeklyMaintenanceWindowBuilder_ != null) {
+ return weeklyMaintenanceWindowBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(weeklyMaintenanceWindow_);
+ }
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder
+ addWeeklyMaintenanceWindowBuilder() {
+ return getWeeklyMaintenanceWindowFieldBuilder()
+ .addBuilder(com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder
+ addWeeklyMaintenanceWindowBuilder(int index) {
+ return getWeeklyMaintenanceWindowFieldBuilder()
+ .addBuilder(
+ index, com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ *
+ * Optional. Maintenance window that is applied to resources covered by this
+ * policy. Minimum 1. For the current version, the maximum number of
+ * weekly_window is expected to be one.
+ *
+ *
+ *
+ * repeated .google.cloud.redis.v1beta1.WeeklyMaintenanceWindow weekly_maintenance_window = 4 [(.google.api.field_behavior) = OPTIONAL];
+ *
+ */
+ public java.util.List
+ getWeeklyMaintenanceWindowBuilderList() {
+ return getWeeklyMaintenanceWindowFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow,
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder,
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>
+ getWeeklyMaintenanceWindowFieldBuilder() {
+ if (weeklyMaintenanceWindowBuilder_ == null) {
+ weeklyMaintenanceWindowBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow,
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindow.Builder,
+ com.google.cloud.redis.v1beta1.WeeklyMaintenanceWindowOrBuilder>(
+ weeklyMaintenanceWindow_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ weeklyMaintenanceWindow_ = null;
+ }
+ return weeklyMaintenanceWindowBuilder_;
+ }
+
+ @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.MaintenancePolicy)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1beta1.MaintenancePolicy)
+ private static final com.google.cloud.redis.v1beta1.MaintenancePolicy DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1beta1.MaintenancePolicy();
+ }
+
+ public static com.google.cloud.redis.v1beta1.MaintenancePolicy getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser PARSER =
+ new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MaintenancePolicy parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MaintenancePolicy(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.cloud.redis.v1beta1.MaintenancePolicy getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+}
diff --git a/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java
new file mode 100644
index 00000000..27b56220
--- /dev/null
+++ b/proto-google-cloud-redis-v1beta1/src/main/java/com/google/cloud/redis/v1beta1/MaintenancePolicyOrBuilder.java
@@ -0,0 +1,202 @@
+/*
+ * 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;
+
+public interface MaintenancePolicyOrBuilder
+ extends
+ // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1beta1.MaintenancePolicy)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ *
+ *
+ *