diff --git a/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml
new file mode 100644
index 000000000000..c4887b7cdf39
--- /dev/null
+++ b/google-api-grpc/grpc-google-cloud-redis-v1/pom.xml
@@ -0,0 +1,31 @@
+
+ * Configures and manages Cloud Memorystore for Redis instances + * Google Cloud Memorystore for Redis v1 + * The `redis.googleapis.com` service implements the Google Cloud Memorystore + * for Redis API and defines the following resource model for managing Redis + * instances: + * * The service works with a collection of cloud projects, named: `/projects/*` + * * Each project has a collection of available locations, named: `/locations/*` + * * Each location has a collection of Redis instances, named: `/instances/*` + * * As such, Redis instances are resources of the form: + * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * Note that location_id must be refering to a GCP `region`; for example: + * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/redis/v1/cloud_redis.proto") +public final class CloudRedisGrpc { + + private CloudRedisGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.redis.v1.CloudRedis"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getListInstancesMethod()} instead. + public static final io.grpc.MethodDescriptor
+ * Configures and manages Cloud Memorystore for Redis instances + * Google Cloud Memorystore for Redis v1 + * The `redis.googleapis.com` service implements the Google Cloud Memorystore + * for Redis API and defines the following resource model for managing Redis + * instances: + * * The service works with a collection of cloud projects, named: `/projects/*` + * * Each project has a collection of available locations, named: `/locations/*` + * * Each location has a collection of Redis instances, named: `/instances/*` + * * As such, Redis instances are resources of the form: + * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * Note that location_id must be refering to a GCP `region`; for example: + * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *+ */ + public static abstract class CloudRedisImplBase implements io.grpc.BindableService { + + /** + *
+ * Lists all Redis instances owned by a project in either the specified + * location (region) or all locations. + * The location should have the following format: + * * `projects/{project_id}/locations/{location_id}` + * If `location_id` is specified as `-` (wildcard), then all regions + * available to the project are queried, and the results are aggregated. + *+ */ + public void listInstances(com.google.cloud.redis.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver
+ * Gets the details of a specific Redis instance. + *+ */ + public void getInstance(com.google.cloud.redis.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a Redis instance based on the specified tier and memory size. + * By default, the instance is accessible from the project's + * [default network](/compute/docs/networks-and-firewalls#networks). + * The creation is executed asynchronously and callers may check the returned + * operation to track its progress. Once the operation is completed the Redis + * instance will be fully functional. Completed longrunning.Operation will + * contain the new instance object in the response field. + * The returned operation is automatically deleted after a few hours, so there + * is no need to call DeleteOperation. + *+ */ + public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Updates the metadata and configuration of a specific Redis instance. + * Completed longrunning.Operation will contain the new instance object + * in the response field. The returned operation is automatically deleted + * after a few hours, so there is no need to call DeleteOperation. + *+ */ + public void updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a specific Redis instance. Instance stops serving and data is + * deleted. + *+ */ + public void deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Configures and manages Cloud Memorystore for Redis instances + * Google Cloud Memorystore for Redis v1 + * The `redis.googleapis.com` service implements the Google Cloud Memorystore + * for Redis API and defines the following resource model for managing Redis + * instances: + * * The service works with a collection of cloud projects, named: `/projects/*` + * * Each project has a collection of available locations, named: `/locations/*` + * * Each location has a collection of Redis instances, named: `/instances/*` + * * As such, Redis instances are resources of the form: + * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * Note that location_id must be refering to a GCP `region`; for example: + * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *+ */ + public static final class CloudRedisStub extends io.grpc.stub.AbstractStub
+ * Lists all Redis instances owned by a project in either the specified + * location (region) or all locations. + * The location should have the following format: + * * `projects/{project_id}/locations/{location_id}` + * If `location_id` is specified as `-` (wildcard), then all regions + * available to the project are queried, and the results are aggregated. + *+ */ + public void listInstances(com.google.cloud.redis.v1.ListInstancesRequest request, + io.grpc.stub.StreamObserver
+ * Gets the details of a specific Redis instance. + *+ */ + public void getInstance(com.google.cloud.redis.v1.GetInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Creates a Redis instance based on the specified tier and memory size. + * By default, the instance is accessible from the project's + * [default network](/compute/docs/networks-and-firewalls#networks). + * The creation is executed asynchronously and callers may check the returned + * operation to track its progress. Once the operation is completed the Redis + * instance will be fully functional. Completed longrunning.Operation will + * contain the new instance object in the response field. + * The returned operation is automatically deleted after a few hours, so there + * is no need to call DeleteOperation. + *+ */ + public void createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Updates the metadata and configuration of a specific Redis instance. + * Completed longrunning.Operation will contain the new instance object + * in the response field. The returned operation is automatically deleted + * after a few hours, so there is no need to call DeleteOperation. + *+ */ + public void updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Deletes a specific Redis instance. Instance stops serving and data is + * deleted. + *+ */ + public void deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request, + io.grpc.stub.StreamObserver
+ * Configures and manages Cloud Memorystore for Redis instances + * Google Cloud Memorystore for Redis v1 + * The `redis.googleapis.com` service implements the Google Cloud Memorystore + * for Redis API and defines the following resource model for managing Redis + * instances: + * * The service works with a collection of cloud projects, named: `/projects/*` + * * Each project has a collection of available locations, named: `/locations/*` + * * Each location has a collection of Redis instances, named: `/instances/*` + * * As such, Redis instances are resources of the form: + * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * Note that location_id must be refering to a GCP `region`; for example: + * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *+ */ + public static final class CloudRedisBlockingStub extends io.grpc.stub.AbstractStub
+ * Lists all Redis instances owned by a project in either the specified + * location (region) or all locations. + * The location should have the following format: + * * `projects/{project_id}/locations/{location_id}` + * If `location_id` is specified as `-` (wildcard), then all regions + * available to the project are queried, and the results are aggregated. + *+ */ + public com.google.cloud.redis.v1.ListInstancesResponse listInstances(com.google.cloud.redis.v1.ListInstancesRequest request) { + return blockingUnaryCall( + getChannel(), getListInstancesMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Gets the details of a specific Redis instance. + *+ */ + public com.google.cloud.redis.v1.Instance getInstance(com.google.cloud.redis.v1.GetInstanceRequest request) { + return blockingUnaryCall( + getChannel(), getGetInstanceMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Creates a Redis instance based on the specified tier and memory size. + * By default, the instance is accessible from the project's + * [default network](/compute/docs/networks-and-firewalls#networks). + * The creation is executed asynchronously and callers may check the returned + * operation to track its progress. Once the operation is completed the Redis + * instance will be fully functional. Completed longrunning.Operation will + * contain the new instance object in the response field. + * The returned operation is automatically deleted after a few hours, so there + * is no need to call DeleteOperation. + *+ */ + public com.google.longrunning.Operation createInstance(com.google.cloud.redis.v1.CreateInstanceRequest request) { + return blockingUnaryCall( + getChannel(), getCreateInstanceMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Updates the metadata and configuration of a specific Redis instance. + * Completed longrunning.Operation will contain the new instance object + * in the response field. The returned operation is automatically deleted + * after a few hours, so there is no need to call DeleteOperation. + *+ */ + public com.google.longrunning.Operation updateInstance(com.google.cloud.redis.v1.UpdateInstanceRequest request) { + return blockingUnaryCall( + getChannel(), getUpdateInstanceMethodHelper(), getCallOptions(), request); + } + + /** + *
+ * Deletes a specific Redis instance. Instance stops serving and data is + * deleted. + *+ */ + public com.google.longrunning.Operation deleteInstance(com.google.cloud.redis.v1.DeleteInstanceRequest request) { + return blockingUnaryCall( + getChannel(), getDeleteInstanceMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+ * Configures and manages Cloud Memorystore for Redis instances + * Google Cloud Memorystore for Redis v1 + * The `redis.googleapis.com` service implements the Google Cloud Memorystore + * for Redis API and defines the following resource model for managing Redis + * instances: + * * The service works with a collection of cloud projects, named: `/projects/*` + * * Each project has a collection of available locations, named: `/locations/*` + * * Each location has a collection of Redis instances, named: `/instances/*` + * * As such, Redis instances are resources of the form: + * `/projects/{project_id}/locations/{location_id}/instances/{instance_id}` + * Note that location_id must be refering to a GCP `region`; for example: + * * `projects/redpepper-1290/locations/us-central1/instances/my-redis` + *+ */ + public static final class CloudRedisFutureStub extends io.grpc.stub.AbstractStub
+ * Lists all Redis instances owned by a project in either the specified + * location (region) or all locations. + * The location should have the following format: + * * `projects/{project_id}/locations/{location_id}` + * If `location_id` is specified as `-` (wildcard), then all regions + * available to the project are queried, and the results are aggregated. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Gets the details of a specific Redis instance. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Creates a Redis instance based on the specified tier and memory size. + * By default, the instance is accessible from the project's + * [default network](/compute/docs/networks-and-firewalls#networks). + * The creation is executed asynchronously and callers may check the returned + * operation to track its progress. Once the operation is completed the Redis + * instance will be fully functional. Completed longrunning.Operation will + * contain the new instance object in the response field. + * The returned operation is automatically deleted after a few hours, so there + * is no need to call DeleteOperation. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Updates the metadata and configuration of a specific Redis instance. + * Completed longrunning.Operation will contain the new instance object + * in the response field. The returned operation is automatically deleted + * after a few hours, so there is no need to call DeleteOperation. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Deletes a specific Redis instance. Instance stops serving and data is + * deleted. + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.10.0)", + comments = "Source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto") +public final class VideoIntelligenceServiceGrpc { + + private VideoIntelligenceServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.videointelligence.v1p2beta1.VideoIntelligenceService"; + + // Static method descriptors that strictly reflect the proto. + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") + @java.lang.Deprecated // Use {@link #getAnnotateVideoMethod()} instead. + public static final io.grpc.MethodDescriptor
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ + public static abstract class VideoIntelligenceServiceImplBase implements io.grpc.BindableService { + + /** + *
+ * Performs asynchronous video annotation. Progress and results can be + * retrieved through the `google.longrunning.Operations` interface. + * `Operation.metadata` contains `AnnotateVideoProgress` (progress). + * `Operation.response` contains `AnnotateVideoResponse` (results). + *+ */ + public void annotateVideo(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request, + io.grpc.stub.StreamObserver
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ + public static final class VideoIntelligenceServiceStub extends io.grpc.stub.AbstractStub
+ * Performs asynchronous video annotation. Progress and results can be + * retrieved through the `google.longrunning.Operations` interface. + * `Operation.metadata` contains `AnnotateVideoProgress` (progress). + * `Operation.response` contains `AnnotateVideoResponse` (results). + *+ */ + public void annotateVideo(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request, + io.grpc.stub.StreamObserver
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ + public static final class VideoIntelligenceServiceBlockingStub extends io.grpc.stub.AbstractStub
+ * Performs asynchronous video annotation. Progress and results can be + * retrieved through the `google.longrunning.Operations` interface. + * `Operation.metadata` contains `AnnotateVideoProgress` (progress). + * `Operation.response` contains `AnnotateVideoResponse` (results). + *+ */ + public com.google.longrunning.Operation annotateVideo(com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest request) { + return blockingUnaryCall( + getChannel(), getAnnotateVideoMethodHelper(), getCallOptions(), request); + } + } + + /** + *
+ * Service that implements Google Cloud Video Intelligence API. + *+ */ + public static final class VideoIntelligenceServiceFutureStub extends io.grpc.stub.AbstractStub
+ * Performs asynchronous video annotation. Progress and results can be + * retrieved through the `google.longrunning.Operations` interface. + * `Operation.metadata` contains `AnnotateVideoProgress` (progress). + * `Operation.response` contains `AnnotateVideoResponse` (results). + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Request for [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} + */ +public final class CreateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.CreateInstanceRequest) + CreateInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateInstanceRequest.newBuilder() to construct. + private CreateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private CreateInstanceRequest() { + parent_ = ""; + instanceId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private CreateInstanceRequest( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + instanceId_ = s; + break; + } + case 26: { + com.google.cloud.redis.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_CreateInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.CreateInstanceRequest.class, com.google.cloud.redis.v1.CreateInstanceRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+ * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object instanceId_;
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ 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();
+ instanceId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ public com.google.protobuf.ByteString
+ getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 3;
+ private com.google.cloud.redis.v1.Instance instance_;
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public boolean hasInstance() {
+ return instance_ != null;
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public com.google.cloud.redis.v1.Instance getInstance() {
+ return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_;
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() {
+ return getInstance();
+ }
+
+ 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 (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (!getInstanceIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_);
+ }
+ if (instance_ != null) {
+ output.writeMessage(3, getInstance());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (!getInstanceIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_);
+ }
+ if (instance_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getInstance());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.redis.v1.CreateInstanceRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1.CreateInstanceRequest other = (com.google.cloud.redis.v1.CreateInstanceRequest) obj;
+
+ boolean result = true;
+ result = result && getParent()
+ .equals(other.getParent());
+ result = result && getInstanceId()
+ .equals(other.getInstanceId());
+ result = result && (hasInstance() == other.hasInstance());
+ if (hasInstance()) {
+ result = result && getInstance()
+ .equals(other.getInstance());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ if (hasInstance()) {
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.CreateInstanceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.redis.v1.CreateInstanceRequest 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 [CreateInstance][google.cloud.redis.v1.CloudRedis.CreateInstance]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.CreateInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ public java.lang.String getInstanceId() {
+ java.lang.Object ref = instanceId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ public com.google.protobuf.ByteString
+ getInstanceIdBytes() {
+ java.lang.Object ref = instanceId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ instanceId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ public Builder setInstanceId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ public Builder clearInstanceId() {
+
+ instanceId_ = getDefaultInstance().getInstanceId();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ public Builder setInstanceIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ instanceId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.cloud.redis.v1.Instance instance_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instanceBuilder_;
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public boolean hasInstance() {
+ return instanceBuilder_ != null || instance_ != null;
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public com.google.cloud.redis.v1.Instance getInstance() {
+ if (instanceBuilder_ == null) {
+ return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_;
+ } else {
+ return instanceBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public Builder setInstance(com.google.cloud.redis.v1.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instance_ = value;
+ onChanged();
+ } else {
+ instanceBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public Builder setInstance(
+ com.google.cloud.redis.v1.Instance.Builder builderForValue) {
+ if (instanceBuilder_ == null) {
+ instance_ = builderForValue.build();
+ onChanged();
+ } else {
+ instanceBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (instance_ != null) {
+ instance_ =
+ com.google.cloud.redis.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial();
+ } else {
+ instance_ = value;
+ }
+ onChanged();
+ } else {
+ instanceBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public Builder clearInstance() {
+ if (instanceBuilder_ == null) {
+ instance_ = null;
+ onChanged();
+ } else {
+ instance_ = null;
+ instanceBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public com.google.cloud.redis.v1.Instance.Builder getInstanceBuilder() {
+
+ onChanged();
+ return getInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() {
+ if (instanceBuilder_ != null) {
+ return instanceBuilder_.getMessageOrBuilder();
+ } else {
+ return instance_ == null ?
+ com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_;
+ }
+ }
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>
+ getInstanceFieldBuilder() {
+ if (instanceBuilder_ == null) {
+ instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>(
+ getInstance(),
+ getParentForChildren(),
+ isClean());
+ instance_ = null;
+ }
+ return instanceBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.CreateInstanceRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.CreateInstanceRequest)
+ private static final com.google.cloud.redis.v1.CreateInstanceRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.CreateInstanceRequest();
+ }
+
+ public static com.google.cloud.redis.v1.CreateInstanceRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString
+ getParentBytes();
+
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ java.lang.String getInstanceId();
+ /**
+ * + * Required. The logical name of the Redis instance in the customer project + * with the following restrictions: + * * Must contain only lowercase letters, numbers, and hyphens. + * * Must start with a letter. + * * Must be between 1-40 characters. + * * Must end with a number or a letter. + * * Must be unique within the customer project / location + *+ * + *
string instance_id = 2;
+ */
+ com.google.protobuf.ByteString
+ getInstanceIdBytes();
+
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ boolean hasInstance();
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ com.google.cloud.redis.v1.Instance getInstance();
+ /**
+ * + * Required. A Redis [Instance] resource + *+ * + *
.google.cloud.redis.v1.Instance instance = 3;
+ */
+ com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java
new file mode 100644
index 000000000000..66dc702fd799
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/DeleteInstanceRequest.java
@@ -0,0 +1,591 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ * + * Request for [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} + */ +public final class DeleteInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.DeleteInstanceRequest) + DeleteInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteInstanceRequest.newBuilder() to construct. + private DeleteInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private DeleteInstanceRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DeleteInstanceRequest( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_DeleteInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.DeleteInstanceRequest.class, com.google.cloud.redis.v1.DeleteInstanceRequest.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;
+ */
+ 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;
+ */
+ 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 (!getNameBytes().isEmpty()) {
+ 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 (!getNameBytes().isEmpty()) {
+ 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.v1.DeleteInstanceRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1.DeleteInstanceRequest other = (com.google.cloud.redis.v1.DeleteInstanceRequest) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @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.v1.DeleteInstanceRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.redis.v1.DeleteInstanceRequest 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 [DeleteInstance][google.cloud.redis.v1.CloudRedis.DeleteInstance]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.DeleteInstanceRequest} + */ + 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.DeleteInstanceRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.DeleteInstanceRequest)
+ private static final com.google.cloud.redis.v1.DeleteInstanceRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.DeleteInstanceRequest();
+ }
+
+ public static com.google.cloud.redis.v1.DeleteInstanceRequest 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;
+ */
+ 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;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java
new file mode 100644
index 000000000000..9c9c11b27549
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/GetInstanceRequest.java
@@ -0,0 +1,591 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ * + * Request for [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.GetInstanceRequest} + */ +public final class GetInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.GetInstanceRequest) + GetInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetInstanceRequest.newBuilder() to construct. + private GetInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private GetInstanceRequest() { + name_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetInstanceRequest( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_GetInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.GetInstanceRequest.class, com.google.cloud.redis.v1.GetInstanceRequest.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;
+ */
+ 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;
+ */
+ 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 (!getNameBytes().isEmpty()) {
+ 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 (!getNameBytes().isEmpty()) {
+ 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.v1.GetInstanceRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1.GetInstanceRequest other = (com.google.cloud.redis.v1.GetInstanceRequest) obj;
+
+ boolean result = true;
+ result = result && getName()
+ .equals(other.getName());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @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.v1.GetInstanceRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.GetInstanceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.redis.v1.GetInstanceRequest 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 [GetInstance][google.cloud.redis.v1.CloudRedis.GetInstance]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.GetInstanceRequest} + */ + 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.GetInstanceRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.GetInstanceRequest)
+ private static final com.google.cloud.redis.v1.GetInstanceRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.GetInstanceRequest();
+ }
+
+ public static com.google.cloud.redis.v1.GetInstanceRequest 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;
+ */
+ 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;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java
new file mode 100644
index 000000000000..3a345b260597
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/Instance.java
@@ -0,0 +1,3770 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ * + * A Google Cloud Redis instance. + *+ * + * Protobuf type {@code google.cloud.redis.v1.Instance} + */ +public final class Instance extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.Instance) + InstanceOrBuilder { +private static final long serialVersionUID = 0L; + // Use Instance.newBuilder() to construct. + private Instance(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private Instance() { + name_ = ""; + displayName_ = ""; + locationId_ = ""; + alternativeLocationId_ = ""; + redisVersion_ = ""; + reservedIpRange_ = ""; + host_ = ""; + port_ = 0; + currentLocationId_ = ""; + state_ = 0; + statusMessage_ = ""; + tier_ = 0; + memorySizeGb_ = 0; + authorizedNetwork_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Instance( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 26: { + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + labels_ = com.google.protobuf.MapField.newMapField( + LabelsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000004; + } + com.google.protobuf.MapEntry
+ * Represents the different states of a Redis instance. + *+ * + * Protobuf enum {@code google.cloud.redis.v1.Instance.State} + */ + public enum State + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+ * Not set. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ STATE_UNSPECIFIED(0),
+ /**
+ * + * Redis instance is being created. + *+ * + *
CREATING = 1;
+ */
+ CREATING(1),
+ /**
+ * + * Redis instance has been created and is fully usable. + *+ * + *
READY = 2;
+ */
+ READY(2),
+ /**
+ * + * Redis instance configuration is being updated. Certain kinds of updates + * may cause the instance to become unusable while the update is in + * progress. + *+ * + *
UPDATING = 3;
+ */
+ UPDATING(3),
+ /**
+ * + * Redis instance is being deleted. + *+ * + *
DELETING = 4;
+ */
+ DELETING(4),
+ /**
+ * + * Redis instance is being repaired and may be unusable. Details can be + * found in the `status_message` field. + *+ * + *
REPAIRING = 5;
+ */
+ REPAIRING(5),
+ /**
+ * + * Maintenance is being performed on this Redis instance. + *+ * + *
MAINTENANCE = 6;
+ */
+ MAINTENANCE(6),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * + * Not set. + *+ * + *
STATE_UNSPECIFIED = 0;
+ */
+ public static final int STATE_UNSPECIFIED_VALUE = 0;
+ /**
+ * + * Redis instance is being created. + *+ * + *
CREATING = 1;
+ */
+ public static final int CREATING_VALUE = 1;
+ /**
+ * + * Redis instance has been created and is fully usable. + *+ * + *
READY = 2;
+ */
+ public static final int READY_VALUE = 2;
+ /**
+ * + * Redis instance configuration is being updated. Certain kinds of updates + * may cause the instance to become unusable while the update is in + * progress. + *+ * + *
UPDATING = 3;
+ */
+ public static final int UPDATING_VALUE = 3;
+ /**
+ * + * Redis instance is being deleted. + *+ * + *
DELETING = 4;
+ */
+ public static final int DELETING_VALUE = 4;
+ /**
+ * + * Redis instance is being repaired and may be unusable. Details can be + * found in the `status_message` field. + *+ * + *
REPAIRING = 5;
+ */
+ public static final int REPAIRING_VALUE = 5;
+ /**
+ * + * Maintenance is being performed on this Redis instance. + *+ * + *
MAINTENANCE = 6;
+ */
+ public static final int MAINTENANCE_VALUE = 6;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static State valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static State forNumber(int value) {
+ switch (value) {
+ case 0: return STATE_UNSPECIFIED;
+ case 1: return CREATING;
+ case 2: return READY;
+ case 3: return UPDATING;
+ case 4: return DELETING;
+ case 5: return REPAIRING;
+ case 6: return MAINTENANCE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * Available service tiers to choose from + *+ * + * Protobuf enum {@code google.cloud.redis.v1.Instance.Tier} + */ + public enum Tier + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+ * Not set. + *+ * + *
TIER_UNSPECIFIED = 0;
+ */
+ TIER_UNSPECIFIED(0),
+ /**
+ * + * BASIC tier: standalone instance + *+ * + *
BASIC = 1;
+ */
+ BASIC(1),
+ /**
+ * + * STANDARD_HA tier: highly available primary/replica instances + *+ * + *
STANDARD_HA = 3;
+ */
+ STANDARD_HA(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * + * Not set. + *+ * + *
TIER_UNSPECIFIED = 0;
+ */
+ public static final int TIER_UNSPECIFIED_VALUE = 0;
+ /**
+ * + * BASIC tier: standalone instance + *+ * + *
BASIC = 1;
+ */
+ public static final int BASIC_VALUE = 1;
+ /**
+ * + * STANDARD_HA tier: highly available primary/replica instances + *+ * + *
STANDARD_HA = 3;
+ */
+ public static final int STANDARD_HA_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static Tier valueOf(int value) {
+ return forNumber(value);
+ }
+
+ public static Tier forNumber(int value) {
+ switch (value) {
+ case 0: return TIER_UNSPECIFIED;
+ case 1: return BASIC;
+ case 3: return STANDARD_HA;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap+ * 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ 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. 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ 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;
+ }
+ }
+
+ public static final int DISPLAY_NAME_FIELD_NUMBER = 2;
+ private volatile java.lang.Object displayName_;
+ /**
+ * + * An arbitrary and optional user-provided name for the instance. + *+ * + *
string display_name = 2;
+ */
+ public java.lang.String getDisplayName() {
+ java.lang.Object ref = displayName_;
+ 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();
+ displayName_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * An arbitrary and optional user-provided name for the instance. + *+ * + *
string display_name = 2;
+ */
+ public com.google.protobuf.ByteString
+ getDisplayNameBytes() {
+ java.lang.Object ref = displayName_;
+ if (ref instanceof java.lang.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;
+ }
+ }
+
+ public static final int LABELS_FIELD_NUMBER = 3;
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ 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.Deprecated
+ public java.util.Map+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ public java.util.Map+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ public java.lang.String getLabelsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Optional. The zone where the instance will be provisioned. If not provided, + * the service will choose a zone for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ public java.lang.String getLocationId() {
+ java.lang.Object ref = locationId_;
+ 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();
+ locationId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. The zone where the instance will be provisioned. If not provided, + * the service will choose a zone for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ public com.google.protobuf.ByteString
+ getLocationIdBytes() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof java.lang.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;
+ }
+ }
+
+ public static final int ALTERNATIVE_LOCATION_ID_FIELD_NUMBER = 5;
+ private volatile java.lang.Object alternativeLocationId_;
+ /**
+ * + * Optional. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ public java.lang.String getAlternativeLocationId() {
+ java.lang.Object ref = alternativeLocationId_;
+ 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();
+ alternativeLocationId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ public com.google.protobuf.ByteString
+ getAlternativeLocationIdBytes() {
+ java.lang.Object ref = alternativeLocationId_;
+ if (ref instanceof java.lang.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;
+ }
+ }
+
+ public static final int REDIS_VERSION_FIELD_NUMBER = 7;
+ private volatile java.lang.Object redisVersion_;
+ /**
+ * + * Optional. The version of Redis software. + * If not provided, latest supported version will be used. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ public java.lang.String getRedisVersion() {
+ java.lang.Object ref = redisVersion_;
+ 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();
+ redisVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. The version of Redis software. + * If not provided, latest supported version will be used. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ public com.google.protobuf.ByteString
+ getRedisVersionBytes() {
+ java.lang.Object ref = redisVersion_;
+ if (ref instanceof java.lang.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;
+ }
+ }
+
+ public static final int RESERVED_IP_RANGE_FIELD_NUMBER = 9;
+ private volatile java.lang.Object reservedIpRange_;
+ /**
+ * + * Optional. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ public java.lang.String getReservedIpRange() {
+ java.lang.Object ref = reservedIpRange_;
+ 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();
+ reservedIpRange_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ public com.google.protobuf.ByteString
+ getReservedIpRangeBytes() {
+ java.lang.Object ref = reservedIpRange_;
+ if (ref instanceof java.lang.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 static final int HOST_FIELD_NUMBER = 10;
+ private volatile 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;
+ */
+ public java.lang.String getHost() {
+ java.lang.Object ref = host_;
+ 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();
+ host_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Output only. Hostname or IP address of the exposed Redis endpoint used by + * clients to connect to the service. + *+ * + *
string host = 10;
+ */
+ public com.google.protobuf.ByteString
+ getHostBytes() {
+ java.lang.Object ref = host_;
+ if (ref instanceof java.lang.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;
+ }
+ }
+
+ public static final int PORT_FIELD_NUMBER = 11;
+ private int port_;
+ /**
+ * + * Output only. The port number of the exposed Redis endpoint. + *+ * + *
int32 port = 11;
+ */
+ public int getPort() {
+ return port_;
+ }
+
+ public static final int CURRENT_LOCATION_ID_FIELD_NUMBER = 12;
+ private volatile java.lang.Object currentLocationId_;
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ public java.lang.String getCurrentLocationId() {
+ java.lang.Object ref = currentLocationId_;
+ 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();
+ currentLocationId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ public com.google.protobuf.ByteString
+ getCurrentLocationIdBytes() {
+ java.lang.Object ref = currentLocationId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ currentLocationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CREATE_TIME_FIELD_NUMBER = 13;
+ private com.google.protobuf.Timestamp createTime_;
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ public static final int STATE_FIELD_NUMBER = 14;
+ private int state_;
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ public com.google.cloud.redis.v1.Instance.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1.Instance.State result = com.google.cloud.redis.v1.Instance.State.valueOf(state_);
+ return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result;
+ }
+
+ public static final int STATUS_MESSAGE_FIELD_NUMBER = 15;
+ private volatile java.lang.Object statusMessage_;
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ public java.lang.String getStatusMessage() {
+ java.lang.Object ref = statusMessage_;
+ 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();
+ statusMessage_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ public com.google.protobuf.ByteString
+ getStatusMessageBytes() {
+ java.lang.Object ref = statusMessage_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ statusMessage_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REDIS_CONFIGS_FIELD_NUMBER = 16;
+ private static final class RedisConfigsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ 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.Deprecated
+ public java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ public java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ public java.lang.String getRedisConfigsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ public java.lang.String getRedisConfigsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ public int getTierValue() {
+ return tier_;
+ }
+ /**
+ * + * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ public com.google.cloud.redis.v1.Instance.Tier getTier() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1.Instance.Tier result = com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_);
+ return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result;
+ }
+
+ public static final int MEMORY_SIZE_GB_FIELD_NUMBER = 18;
+ private int memorySizeGb_;
+ /**
+ * + * Required. Redis memory size in GiB. + *+ * + *
int32 memory_size_gb = 18;
+ */
+ public int getMemorySizeGb() {
+ return memorySizeGb_;
+ }
+
+ public static final int AUTHORIZED_NETWORK_FIELD_NUMBER = 20;
+ private volatile java.lang.Object authorizedNetwork_;
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ public java.lang.String getAuthorizedNetwork() {
+ java.lang.Object ref = authorizedNetwork_;
+ 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();
+ authorizedNetwork_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ public com.google.protobuf.ByteString
+ getAuthorizedNetworkBytes() {
+ java.lang.Object ref = authorizedNetwork_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ authorizedNetwork_ = 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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getDisplayNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetLabels(),
+ LabelsDefaultEntryHolder.defaultEntry,
+ 3);
+ if (!getLocationIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, locationId_);
+ }
+ if (!getAlternativeLocationIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, alternativeLocationId_);
+ }
+ if (!getRedisVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, redisVersion_);
+ }
+ if (!getReservedIpRangeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, reservedIpRange_);
+ }
+ if (!getHostBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 10, host_);
+ }
+ if (port_ != 0) {
+ output.writeInt32(11, port_);
+ }
+ if (!getCurrentLocationIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, currentLocationId_);
+ }
+ if (createTime_ != null) {
+ output.writeMessage(13, getCreateTime());
+ }
+ if (state_ != com.google.cloud.redis.v1.Instance.State.STATE_UNSPECIFIED.getNumber()) {
+ output.writeEnum(14, state_);
+ }
+ if (!getStatusMessageBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 15, statusMessage_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetRedisConfigs(),
+ RedisConfigsDefaultEntryHolder.defaultEntry,
+ 16);
+ if (tier_ != com.google.cloud.redis.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) {
+ output.writeEnum(17, tier_);
+ }
+ if (memorySizeGb_ != 0) {
+ output.writeInt32(18, memorySizeGb_);
+ }
+ if (!getAuthorizedNetworkBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 20, authorizedNetwork_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getDisplayNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_);
+ }
+ for (java.util.Map.Entry+ * A Google Cloud Redis instance. + *+ * + * Protobuf type {@code google.cloud.redis.v1.Instance} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ public Builder clearDisplayName() {
+
+ displayName_ = getDefaultInstance().getDisplayName();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * An arbitrary and optional user-provided name for the instance. + *+ * + *
string display_name = 2;
+ */
+ 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<
+ java.lang.String, java.lang.String> labels_;
+ private com.google.protobuf.MapField+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ 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.Deprecated
+ public java.util.Map+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ public java.util.Map+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ public java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ public java.lang.String getLabelsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * 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+ * 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+ * Optional. The zone where the instance will be provisioned. If not provided, + * the service will choose a zone for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ 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 for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ 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 for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ 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 for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ 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 for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ 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. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ 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. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ 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. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ public Builder setAlternativeLocationId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ alternativeLocationId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ public Builder clearAlternativeLocationId() {
+
+ alternativeLocationId_ = getDefaultInstance().getAlternativeLocationId();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ 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. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ 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. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ 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. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ 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. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ public Builder clearRedisVersion() {
+
+ redisVersion_ = getDefaultInstance().getRedisVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The version of Redis software. + * If not provided, latest supported version will be used. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ 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. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ 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. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ 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. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ public Builder setReservedIpRange(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ reservedIpRange_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ public Builder clearReservedIpRange() {
+
+ reservedIpRange_ = getDefaultInstance().getReservedIpRange();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ 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;
+ */
+ public int getPort() {
+ return port_;
+ }
+ /**
+ * + * Output only. The port number of the exposed Redis endpoint. + *+ * + *
int32 port = 11;
+ */
+ public Builder setPort(int value) {
+
+ port_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. The port number of the exposed Redis endpoint. + *+ * + *
int32 port = 11;
+ */
+ public Builder clearPort() {
+
+ port_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object currentLocationId_ = "";
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ 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();
+ currentLocationId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ 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);
+ currentLocationId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ public Builder setCurrentLocationId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ currentLocationId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ public Builder clearCurrentLocationId() {
+
+ currentLocationId_ = getDefaultInstance().getCurrentLocationId();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ public Builder setCurrentLocationIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ currentLocationId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp createTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_;
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ 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 the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ 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 the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ 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 the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ 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. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ 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;
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ public com.google.cloud.redis.v1.Instance.State getState() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1.Instance.State result = com.google.cloud.redis.v1.Instance.State.valueOf(state_);
+ return result == null ? com.google.cloud.redis.v1.Instance.State.UNRECOGNIZED : result;
+ }
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ public Builder setState(com.google.cloud.redis.v1.Instance.State value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object statusMessage_ = "";
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ 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;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ 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;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ public Builder setStatusMessage(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ statusMessage_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ public Builder clearStatusMessage() {
+
+ statusMessage_ = getDefaultInstance().getStatusMessage();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ public Builder setStatusMessageBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ statusMessage_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> redisConfigs_;
+ private com.google.protobuf.MapField+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ 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.Deprecated
+ public java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ public java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ public java.lang.String getRedisConfigsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ public java.lang.String getRedisConfigsOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ 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+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+ 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;
+ }
+ /**
+ * + * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ public Builder putAllRedisConfigs(
+ java.util.Map+ * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ public int getTierValue() {
+ return tier_;
+ }
+ /**
+ * + * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ public Builder setTierValue(int value) {
+ tier_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ public com.google.cloud.redis.v1.Instance.Tier getTier() {
+ @SuppressWarnings("deprecation")
+ com.google.cloud.redis.v1.Instance.Tier result = com.google.cloud.redis.v1.Instance.Tier.valueOf(tier_);
+ return result == null ? com.google.cloud.redis.v1.Instance.Tier.UNRECOGNIZED : result;
+ }
+ /**
+ * + * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ public Builder setTier(com.google.cloud.redis.v1.Instance.Tier value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ tier_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ public Builder clearTier() {
+
+ tier_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int memorySizeGb_ ;
+ /**
+ * + * Required. Redis memory size in GiB. + *+ * + *
int32 memory_size_gb = 18;
+ */
+ public int getMemorySizeGb() {
+ return memorySizeGb_;
+ }
+ /**
+ * + * Required. Redis memory size in GiB. + *+ * + *
int32 memory_size_gb = 18;
+ */
+ public Builder setMemorySizeGb(int value) {
+
+ memorySizeGb_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. Redis memory size in GiB. + *+ * + *
int32 memory_size_gb = 18;
+ */
+ public Builder clearMemorySizeGb() {
+
+ memorySizeGb_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object authorizedNetwork_ = "";
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ 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;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ 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;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ public Builder setAuthorizedNetwork(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ authorizedNetwork_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ public Builder clearAuthorizedNetwork() {
+
+ authorizedNetwork_ = getDefaultInstance().getAuthorizedNetwork();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ public Builder setAuthorizedNetworkBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ authorizedNetwork_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.Instance)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.Instance)
+ private static final com.google.cloud.redis.v1.Instance DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.Instance();
+ }
+
+ public static com.google.cloud.redis.v1.Instance getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ 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] and + * [alternative_location_id] fields for more details. + *+ * + *
string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * + * An arbitrary and optional user-provided name for the instance. + *+ * + *
string display_name = 2;
+ */
+ java.lang.String getDisplayName();
+ /**
+ * + * An arbitrary and optional user-provided name for the instance. + *+ * + *
string display_name = 2;
+ */
+ com.google.protobuf.ByteString
+ getDisplayNameBytes();
+
+ /**
+ * + * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+ int getLabelsCount();
+ /**
+ * + * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+ boolean containsLabels(
+ java.lang.String key);
+ /**
+ * Use {@link #getLabelsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+ java.util.Map+ * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * Resource labels to represent user provided metadata + *+ * + *
map<string, string> labels = 3;
+ */
+
+ java.lang.String getLabelsOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * Optional. The zone where the instance will be provisioned. If not provided, + * the service will choose a zone for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ java.lang.String getLocationId();
+ /**
+ * + * Optional. The zone where the instance will be provisioned. If not provided, + * the service will choose a zone for the instance. For STANDARD_HA tier, + * instances will be created across two zones for protection against zonal + * failures. If [alternative_location_id] is also provided, it must be + * different from [location_id]. + *+ * + *
string location_id = 4;
+ */
+ com.google.protobuf.ByteString
+ getLocationIdBytes();
+
+ /**
+ * + * Optional. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ java.lang.String getAlternativeLocationId();
+ /**
+ * + * Optional. Only applicable to STANDARD_HA tier which protects the instance + * against zonal failures by provisioning it across two zones. If provided, it + * must be a different zone from the one provided in [location_id]. + *+ * + *
string alternative_location_id = 5;
+ */
+ com.google.protobuf.ByteString
+ getAlternativeLocationIdBytes();
+
+ /**
+ * + * Optional. The version of Redis software. + * If not provided, latest supported version will be used. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ java.lang.String getRedisVersion();
+ /**
+ * + * Optional. The version of Redis software. + * If not provided, latest supported version will be used. Updating the + * version will perform an upgrade/downgrade to the new version. Currently, + * the supported values are `REDIS_3_2` for Redis 3.2. + *+ * + *
string redis_version = 7;
+ */
+ com.google.protobuf.ByteString
+ getRedisVersionBytes();
+
+ /**
+ * + * Optional. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ java.lang.String getReservedIpRange();
+ /**
+ * + * Optional. The CIDR range of internal addresses that are reserved for this + * instance. If not provided, the service will choose an unused /29 block, + * for example, 10.0.0.0/29 or 192.168.0.0/29. Ranges must be unique + * and non-overlapping with existing subnets in an authorized network. + *+ * + *
string reserved_ip_range = 9;
+ */
+ com.google.protobuf.ByteString
+ getReservedIpRangeBytes();
+
+ /**
+ * + * Output only. Hostname or IP address of the exposed Redis endpoint used by + * clients to connect to the service. + *+ * + *
string host = 10;
+ */
+ java.lang.String getHost();
+ /**
+ * + * Output only. Hostname or IP address of the exposed Redis endpoint used by + * clients to connect to the service. + *+ * + *
string host = 10;
+ */
+ com.google.protobuf.ByteString
+ getHostBytes();
+
+ /**
+ * + * Output only. The port number of the exposed Redis endpoint. + *+ * + *
int32 port = 11;
+ */
+ int getPort();
+
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ java.lang.String getCurrentLocationId();
+ /**
+ * + * Output only. The current zone where the Redis endpoint is placed. For Basic + * Tier instances, this will always be the same as the [location_id] + * provided by the user at creation time. For Standard Tier instances, + * this can be either [location_id] or [alternative_location_id] and can + * change after a failover event. + *+ * + *
string current_location_id = 12;
+ */
+ com.google.protobuf.ByteString
+ getCurrentLocationIdBytes();
+
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ boolean hasCreateTime();
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ * + * Output only. The time the instance was created. + *+ * + *
.google.protobuf.Timestamp create_time = 13;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ int getStateValue();
+ /**
+ * + * Output only. The current state of this instance. + *+ * + *
.google.cloud.redis.v1.Instance.State state = 14;
+ */
+ com.google.cloud.redis.v1.Instance.State getState();
+
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ java.lang.String getStatusMessage();
+ /**
+ * + * Output only. Additional information about the current status of this + * instance, if available. + *+ * + *
string status_message = 15;
+ */
+ com.google.protobuf.ByteString
+ getStatusMessageBytes();
+
+ /**
+ * + * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+ int getRedisConfigsCount();
+ /**
+ * + * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+ boolean containsRedisConfigs(
+ java.lang.String key);
+ /**
+ * Use {@link #getRedisConfigsMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+ java.util.Map+ * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ java.lang.String getRedisConfigsOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * + * Optional. Redis configuration parameters, according to + * http://redis.io/topics/config. Currently, the only supported parameters + * are: + * * maxmemory-policy + * * notify-keyspace-events + *+ * + *
map<string, string> redis_configs = 16;
+ */
+
+ java.lang.String getRedisConfigsOrThrow(
+ java.lang.String key);
+
+ /**
+ * + * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ int getTierValue();
+ /**
+ * + * Required. The service tier of the instance. + *+ * + *
.google.cloud.redis.v1.Instance.Tier tier = 17;
+ */
+ com.google.cloud.redis.v1.Instance.Tier getTier();
+
+ /**
+ * + * Required. Redis memory size in GiB. + *+ * + *
int32 memory_size_gb = 18;
+ */
+ int getMemorySizeGb();
+
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ java.lang.String getAuthorizedNetwork();
+ /**
+ * + * Optional. The full name of the Google Compute Engine + * [network](/compute/docs/networks-and-firewalls#networks) to which the + * instance is connected. If left unspecified, the `default` network + * will be used. + *+ * + *
string authorized_network = 20;
+ */
+ com.google.protobuf.ByteString
+ getAuthorizedNetworkBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java
new file mode 100644
index 000000000000..d7be57b6b1d3
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesRequest.java
@@ -0,0 +1,847 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ * + * Request for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.ListInstancesRequest} + */ +public final class ListInstancesRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ListInstancesRequest) + ListInstancesRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListInstancesRequest.newBuilder() to construct. + private ListInstancesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ListInstancesRequest() { + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListInstancesRequest( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: { + + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ListInstancesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.ListInstancesRequest.class, com.google.cloud.redis.v1.ListInstancesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + *
+ * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ 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();
+ parent_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PAGE_SIZE_FIELD_NUMBER = 2;
+ private int pageSize_;
+ /**
+ * + * The maximum number of items to return. + * If not specified, a default value of 1000 will be used by the service. + * Regardless of the page_size value, the response may include a partial list + * and a caller should only rely on response's + * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token] + * to determine if there are more instances left to be queried. + *+ * + *
int32 page_size = 2;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+
+ public static final int PAGE_TOKEN_FIELD_NUMBER = 3;
+ private volatile java.lang.Object pageToken_;
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ 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();
+ pageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ public com.google.protobuf.ByteString
+ getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pageToken_ = 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 (!getParentBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_);
+ }
+ if (pageSize_ != 0) {
+ output.writeInt32(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getParentBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_);
+ }
+ if (pageSize_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(2, pageSize_);
+ }
+ if (!getPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.redis.v1.ListInstancesRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1.ListInstancesRequest other = (com.google.cloud.redis.v1.ListInstancesRequest) obj;
+
+ boolean result = true;
+ result = result && getParent()
+ .equals(other.getParent());
+ result = result && (getPageSize()
+ == other.getPageSize());
+ result = result && getPageToken()
+ .equals(other.getPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARENT_FIELD_NUMBER;
+ hash = (53 * hash) + getParent().hashCode();
+ hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER;
+ hash = (53 * hash) + getPageSize();
+ hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.redis.v1.ListInstancesRequest 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 [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.ListInstancesRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public java.lang.String getParent() {
+ java.lang.Object ref = parent_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ parent_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public com.google.protobuf.ByteString
+ getParentBytes() {
+ java.lang.Object ref = parent_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ parent_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public Builder setParent(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public Builder clearParent() {
+
+ parent_ = getDefaultInstance().getParent();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ public Builder setParentBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ parent_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int pageSize_ ;
+ /**
+ * + * The maximum number of items to return. + * If not specified, a default value of 1000 will be used by the service. + * Regardless of the page_size value, the response may include a partial list + * and a caller should only rely on response's + * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token] + * to determine if there are more instances left to be queried. + *+ * + *
int32 page_size = 2;
+ */
+ public int getPageSize() {
+ return pageSize_;
+ }
+ /**
+ * + * The maximum number of items to return. + * If not specified, a default value of 1000 will be used by the service. + * Regardless of the page_size value, the response may include a partial list + * and a caller should only rely on response's + * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token] + * to determine if there are more instances left to be queried. + *+ * + *
int32 page_size = 2;
+ */
+ public Builder setPageSize(int value) {
+
+ pageSize_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The maximum number of items to return. + * If not specified, a default value of 1000 will be used by the service. + * Regardless of the page_size value, the response may include a partial list + * and a caller should only rely on response's + * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token] + * to determine if there are more instances left to be queried. + *+ * + *
int32 page_size = 2;
+ */
+ public Builder clearPageSize() {
+
+ pageSize_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pageToken_ = "";
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ public java.lang.String getPageToken() {
+ java.lang.Object ref = pageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ public com.google.protobuf.ByteString
+ getPageTokenBytes() {
+ java.lang.Object ref = pageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ public Builder setPageToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ public Builder clearPageToken() {
+
+ pageToken_ = getDefaultInstance().getPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ public Builder setPageTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pageToken_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ListInstancesRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesRequest)
+ private static final com.google.cloud.redis.v1.ListInstancesRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ListInstancesRequest();
+ }
+
+ public static com.google.cloud.redis.v1.ListInstancesRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ java.lang.String getParent();
+ /**
+ * + * Required. The resource name of the instance location using the form: + * `projects/{project_id}/locations/{location_id}` + * where `location_id` refers to a GCP region + *+ * + *
string parent = 1;
+ */
+ com.google.protobuf.ByteString
+ getParentBytes();
+
+ /**
+ * + * The maximum number of items to return. + * If not specified, a default value of 1000 will be used by the service. + * Regardless of the page_size value, the response may include a partial list + * and a caller should only rely on response's + * [next_page_token][CloudRedis.ListInstancesResponse.next_page_token] + * to determine if there are more instances left to be queried. + *+ * + *
int32 page_size = 2;
+ */
+ int getPageSize();
+
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ java.lang.String getPageToken();
+ /**
+ * + * The next_page_token value returned from a previous List request, + * if any. + *+ * + *
string page_token = 3;
+ */
+ com.google.protobuf.ByteString
+ getPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java
new file mode 100644
index 000000000000..7c210959a23f
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ListInstancesResponse.java
@@ -0,0 +1,1208 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ * + * Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.ListInstancesResponse} + */ +public final class ListInstancesResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ListInstancesResponse) + ListInstancesResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListInstancesResponse.newBuilder() to construct. + private ListInstancesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ListInstancesResponse() { + instances_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListInstancesResponse( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + instances_ = new java.util.ArrayList
+ * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public java.util.List+ * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public java.util.List extends com.google.cloud.redis.v1.InstanceOrBuilder>
+ getInstancesOrBuilderList() {
+ return instances_;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public int getInstancesCount() {
+ return instances_.size();
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public com.google.cloud.redis.v1.Instance getInstances(int index) {
+ return instances_.get(index);
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
+ int index) {
+ return instances_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object nextPageToken_;
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ 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();
+ nextPageToken_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString
+ getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nextPageToken_ = 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 {
+ for (int i = 0; i < instances_.size(); i++) {
+ output.writeMessage(1, instances_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < instances_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, instances_.get(i));
+ }
+ if (!getNextPageTokenBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.redis.v1.ListInstancesResponse)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1.ListInstancesResponse other = (com.google.cloud.redis.v1.ListInstancesResponse) obj;
+
+ boolean result = true;
+ result = result && getInstancesList()
+ .equals(other.getInstancesList());
+ result = result && getNextPageToken()
+ .equals(other.getNextPageToken());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getInstancesCount() > 0) {
+ hash = (37 * hash) + INSTANCES_FIELD_NUMBER;
+ hash = (53 * hash) + getInstancesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.ListInstancesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.redis.v1.ListInstancesResponse 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;
+ }
+ /**
+ * + * Response for [ListInstances][google.cloud.redis.v1.CloudRedis.ListInstances]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.ListInstancesResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public java.util.List+ * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public int getInstancesCount() {
+ if (instancesBuilder_ == null) {
+ return instances_.size();
+ } else {
+ return instancesBuilder_.getCount();
+ }
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public com.google.cloud.redis.v1.Instance getInstances(int index) {
+ if (instancesBuilder_ == null) {
+ return instances_.get(index);
+ } else {
+ return instancesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder setInstances(
+ int index, com.google.cloud.redis.v1.Instance value) {
+ if (instancesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInstancesIsMutable();
+ instances_.set(index, value);
+ onChanged();
+ } else {
+ instancesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder setInstances(
+ int index, com.google.cloud.redis.v1.Instance.Builder builderForValue) {
+ if (instancesBuilder_ == null) {
+ ensureInstancesIsMutable();
+ instances_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ instancesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder addInstances(com.google.cloud.redis.v1.Instance value) {
+ if (instancesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInstancesIsMutable();
+ instances_.add(value);
+ onChanged();
+ } else {
+ instancesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder addInstances(
+ int index, com.google.cloud.redis.v1.Instance value) {
+ if (instancesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureInstancesIsMutable();
+ instances_.add(index, value);
+ onChanged();
+ } else {
+ instancesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder addInstances(
+ com.google.cloud.redis.v1.Instance.Builder builderForValue) {
+ if (instancesBuilder_ == null) {
+ ensureInstancesIsMutable();
+ instances_.add(builderForValue.build());
+ onChanged();
+ } else {
+ instancesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder addInstances(
+ int index, com.google.cloud.redis.v1.Instance.Builder builderForValue) {
+ if (instancesBuilder_ == null) {
+ ensureInstancesIsMutable();
+ instances_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ instancesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder addAllInstances(
+ java.lang.Iterable extends com.google.cloud.redis.v1.Instance> values) {
+ if (instancesBuilder_ == null) {
+ ensureInstancesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, instances_);
+ onChanged();
+ } else {
+ instancesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder clearInstances() {
+ if (instancesBuilder_ == null) {
+ instances_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ instancesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public Builder removeInstances(int index) {
+ if (instancesBuilder_ == null) {
+ ensureInstancesIsMutable();
+ instances_.remove(index);
+ onChanged();
+ } else {
+ instancesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public com.google.cloud.redis.v1.Instance.Builder getInstancesBuilder(
+ int index) {
+ return getInstancesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
+ int index) {
+ if (instancesBuilder_ == null) {
+ return instances_.get(index); } else {
+ return instancesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public java.util.List extends com.google.cloud.redis.v1.InstanceOrBuilder>
+ getInstancesOrBuilderList() {
+ if (instancesBuilder_ != null) {
+ return instancesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(instances_);
+ }
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder() {
+ return getInstancesFieldBuilder().addBuilder(
+ com.google.cloud.redis.v1.Instance.getDefaultInstance());
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public com.google.cloud.redis.v1.Instance.Builder addInstancesBuilder(
+ int index) {
+ return getInstancesFieldBuilder().addBuilder(
+ index, com.google.cloud.redis.v1.Instance.getDefaultInstance());
+ }
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ public java.util.List+ * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public java.lang.String getNextPageToken() {
+ java.lang.Object ref = nextPageToken_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ nextPageToken_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public com.google.protobuf.ByteString
+ getNextPageTokenBytes() {
+ java.lang.Object ref = nextPageToken_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ nextPageToken_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageToken(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder clearNextPageToken() {
+
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ public Builder setNextPageTokenBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ nextPageToken_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.ListInstancesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.ListInstancesResponse)
+ private static final com.google.cloud.redis.v1.ListInstancesResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.ListInstancesResponse();
+ }
+
+ public static com.google.cloud.redis.v1.ListInstancesResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ java.util.List+ * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ com.google.cloud.redis.v1.Instance getInstances(int index);
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ int getInstancesCount();
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ java.util.List extends com.google.cloud.redis.v1.InstanceOrBuilder>
+ getInstancesOrBuilderList();
+ /**
+ * + * A list of Redis instances in the project in the specified location, + * or across all locations. + * If the `location_id` in the parent field of the request is "-", all regions + * available to the project are queried, and the results aggregated. + * If in such an aggregated query a location is unavailable, a dummy Redis + * entry is included in the response with the "name" field set to a value of + * the form projects/{project_id}/locations/{location_id}/instances/- and the + * "status" field set to ERROR and "status_message" field set to "location not + * available for ListInstances". + *+ * + *
repeated .google.cloud.redis.v1.Instance instances = 1;
+ */
+ com.google.cloud.redis.v1.InstanceOrBuilder getInstancesOrBuilder(
+ int index);
+
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ java.lang.String getNextPageToken();
+ /**
+ * + * Token to retrieve the next page of results, or empty if there are no more + * results in the list. + *+ * + *
string next_page_token = 2;
+ */
+ com.google.protobuf.ByteString
+ getNextPageTokenBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java
new file mode 100644
index 000000000000..ed2d4b306a44
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationMetadata.java
@@ -0,0 +1,780 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ * + * This location metadata represents additional configuration options for a + * given location where a Redis instance may be created. All fields are output + * only. It is returned as content of the + * `google.cloud.location.Location.metadata` field. + *+ * + * Protobuf type {@code google.cloud.redis.v1.LocationMetadata} + */ +public final class LocationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.LocationMetadata) + LocationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use LocationMetadata.newBuilder() to construct. + private LocationMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private LocationMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LocationMetadata( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + availableZones_ = com.google.protobuf.MapField.newMapField( + AvailableZonesDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry
+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public boolean containsAvailableZones(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAvailableZones().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAvailableZonesMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
+ java.lang.String key,
+ com.google.cloud.redis.v1.ZoneMetadata defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * This location metadata represents additional configuration options for a + * given location where a Redis instance may be created. All fields are output + * only. It is returned as content of the + * `google.cloud.location.Location.metadata` field. + *+ * + * Protobuf type {@code google.cloud.redis.v1.LocationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public boolean containsAvailableZones(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetAvailableZones().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getAvailableZonesMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
+ java.lang.String key,
+ com.google.cloud.redis.v1.ZoneMetadata defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public Builder removeAvailableZones(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAvailableZones().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+ public Builder putAvailableZones(
+ java.lang.String key,
+ com.google.cloud.redis.v1.ZoneMetadata value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableAvailableZones().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * + * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ public Builder putAllAvailableZones(
+ java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+ int getAvailableZonesCount();
+ /**
+ * + * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+ boolean containsAvailableZones(
+ java.lang.String key);
+ /**
+ * Use {@link #getAvailableZonesMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+ java.util.Map+ * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault(
+ java.lang.String key,
+ com.google.cloud.redis.v1.ZoneMetadata defaultValue);
+ /**
+ * + * Output only. The set of available zones in the location. The map is keyed + * by the lowercase ID of each zone, as defined by GCE. These keys can be + * specified in `location_id` or `alternative_location_id` fields when + * creating a Redis instance. + *+ * + *
map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1;
+ */
+
+ com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(
+ java.lang.String key);
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java
new file mode 100644
index 000000000000..74f8cfaaf1ff
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/LocationName.java
@@ -0,0 +1,189 @@
+/*
+ * Copyright 2018 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
+ *
+ * http://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.
+ */
+
+package com.google.cloud.redis.v1;
+
+import com.google.common.base.Preconditions;
+import com.google.common.collect.ImmutableMap;
+import com.google.api.pathtemplate.PathTemplate;
+import com.google.api.resourcenames.ResourceName;
+import java.util.Map;
+import java.util.ArrayList;
+import java.util.List;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+@javax.annotation.Generated("by GAPIC protoc plugin")
+public class LocationName implements ResourceName {
+
+ private static final PathTemplate PATH_TEMPLATE =
+ PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}");
+
+ private volatile Map+ * Represents the v1 metadata of the long-running operation. + *+ * + * Protobuf type {@code google.cloud.redis.v1.OperationMetadata} + */ +public final class OperationMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.OperationMetadata) + OperationMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use OperationMetadata.newBuilder() to construct. + private OperationMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private OperationMetadata() { + target_ = ""; + verb_ = ""; + statusDetail_ = ""; + cancelRequested_ = false; + apiVersion_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private OperationMetadata( + 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 (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + target_ = s; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + verb_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + statusDetail_ = s; + break; + } + case 48: { + + cancelRequested_ = input.readBool(); + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + apiVersion_ = s; + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_OperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.OperationMetadata.class, com.google.cloud.redis.v1.OperationMetadata.Builder.class); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp createTime_; + /** + *
+ * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public boolean hasCreateTime() {
+ return createTime_ != null;
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ return getCreateTime();
+ }
+
+ public static final int END_TIME_FIELD_NUMBER = 2;
+ private com.google.protobuf.Timestamp endTime_;
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTime_ != null;
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ return getEndTime();
+ }
+
+ public static final int TARGET_FIELD_NUMBER = 3;
+ private volatile java.lang.Object target_;
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ public java.lang.String getTarget() {
+ java.lang.Object ref = target_;
+ 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();
+ target_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ public com.google.protobuf.ByteString
+ getTargetBytes() {
+ java.lang.Object ref = target_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ target_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERB_FIELD_NUMBER = 4;
+ private volatile java.lang.Object verb_;
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ public java.lang.String getVerb() {
+ java.lang.Object ref = verb_;
+ 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();
+ verb_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ public com.google.protobuf.ByteString
+ getVerbBytes() {
+ java.lang.Object ref = verb_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ verb_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STATUS_DETAIL_FIELD_NUMBER = 5;
+ private volatile java.lang.Object statusDetail_;
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ public java.lang.String getStatusDetail() {
+ java.lang.Object ref = statusDetail_;
+ 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();
+ statusDetail_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ public com.google.protobuf.ByteString
+ getStatusDetailBytes() {
+ java.lang.Object ref = statusDetail_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ statusDetail_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CANCEL_REQUESTED_FIELD_NUMBER = 6;
+ private boolean cancelRequested_;
+ /**
+ * + * Specifies if cancellation was requested for the operaiton. + *+ * + *
bool cancel_requested = 6;
+ */
+ public boolean getCancelRequested() {
+ return cancelRequested_;
+ }
+
+ public static final int API_VERSION_FIELD_NUMBER = 7;
+ private volatile java.lang.Object apiVersion_;
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ public java.lang.String getApiVersion() {
+ java.lang.Object ref = apiVersion_;
+ 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();
+ apiVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ public com.google.protobuf.ByteString
+ getApiVersionBytes() {
+ java.lang.Object ref = apiVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ apiVersion_ = 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 (createTime_ != null) {
+ output.writeMessage(1, getCreateTime());
+ }
+ if (endTime_ != null) {
+ output.writeMessage(2, getEndTime());
+ }
+ if (!getTargetBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, target_);
+ }
+ if (!getVerbBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, verb_);
+ }
+ if (!getStatusDetailBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, statusDetail_);
+ }
+ if (cancelRequested_ != false) {
+ output.writeBool(6, cancelRequested_);
+ }
+ if (!getApiVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 7, apiVersion_);
+ }
+ 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 (endTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getEndTime());
+ }
+ if (!getTargetBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, target_);
+ }
+ if (!getVerbBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, verb_);
+ }
+ if (!getStatusDetailBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, statusDetail_);
+ }
+ if (cancelRequested_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, cancelRequested_);
+ }
+ if (!getApiVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, apiVersion_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.redis.v1.OperationMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1.OperationMetadata other = (com.google.cloud.redis.v1.OperationMetadata) obj;
+
+ boolean result = true;
+ result = result && (hasCreateTime() == other.hasCreateTime());
+ if (hasCreateTime()) {
+ result = result && getCreateTime()
+ .equals(other.getCreateTime());
+ }
+ result = result && (hasEndTime() == other.hasEndTime());
+ if (hasEndTime()) {
+ result = result && getEndTime()
+ .equals(other.getEndTime());
+ }
+ result = result && getTarget()
+ .equals(other.getTarget());
+ result = result && getVerb()
+ .equals(other.getVerb());
+ result = result && getStatusDetail()
+ .equals(other.getStatusDetail());
+ result = result && (getCancelRequested()
+ == other.getCancelRequested());
+ result = result && getApiVersion()
+ .equals(other.getApiVersion());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @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 (hasEndTime()) {
+ hash = (37 * hash) + END_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getEndTime().hashCode();
+ }
+ hash = (37 * hash) + TARGET_FIELD_NUMBER;
+ hash = (53 * hash) + getTarget().hashCode();
+ hash = (37 * hash) + VERB_FIELD_NUMBER;
+ hash = (53 * hash) + getVerb().hashCode();
+ hash = (37 * hash) + STATUS_DETAIL_FIELD_NUMBER;
+ hash = (53 * hash) + getStatusDetail().hashCode();
+ hash = (37 * hash) + CANCEL_REQUESTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getCancelRequested());
+ hash = (37 * hash) + API_VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getApiVersion().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.OperationMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.redis.v1.OperationMetadata 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;
+ }
+ /**
+ * + * Represents the v1 metadata of the long-running operation. + *+ * + * Protobuf type {@code google.cloud.redis.v1.OperationMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public boolean hasCreateTime() {
+ return createTimeBuilder_ != null || createTime_ != null;
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public com.google.protobuf.Timestamp getCreateTime() {
+ if (createTimeBuilder_ == null) {
+ return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ } else {
+ return createTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ 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;
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public Builder setCreateTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (createTimeBuilder_ == null) {
+ createTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ createTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ 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;
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public Builder clearCreateTime() {
+ if (createTimeBuilder_ == null) {
+ createTime_ = null;
+ onChanged();
+ } else {
+ createTime_ = null;
+ createTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() {
+
+ onChanged();
+ return getCreateTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() {
+ if (createTimeBuilder_ != null) {
+ return createTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return createTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : createTime_;
+ }
+ }
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ 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 endTime_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_;
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public boolean hasEndTime() {
+ return endTimeBuilder_ != null || endTime_ != null;
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp getEndTime() {
+ if (endTimeBuilder_ == null) {
+ return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ } else {
+ return endTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ endTime_ = value;
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder setEndTime(
+ com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (endTimeBuilder_ == null) {
+ endTime_ = builderForValue.build();
+ onChanged();
+ } else {
+ endTimeBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
+ if (endTimeBuilder_ == null) {
+ if (endTime_ != null) {
+ endTime_ =
+ com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial();
+ } else {
+ endTime_ = value;
+ }
+ onChanged();
+ } else {
+ endTimeBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public Builder clearEndTime() {
+ if (endTimeBuilder_ == null) {
+ endTime_ = null;
+ onChanged();
+ } else {
+ endTime_ = null;
+ endTimeBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
+
+ onChanged();
+ return getEndTimeFieldBuilder().getBuilder();
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
+ if (endTimeBuilder_ != null) {
+ return endTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return endTime_ == null ?
+ com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
+ }
+ }
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
+ getEndTimeFieldBuilder() {
+ if (endTimeBuilder_ == null) {
+ endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+ getEndTime(),
+ getParentForChildren(),
+ isClean());
+ endTime_ = null;
+ }
+ return endTimeBuilder_;
+ }
+
+ private java.lang.Object target_ = "";
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ public java.lang.String getTarget() {
+ java.lang.Object ref = target_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ target_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ public com.google.protobuf.ByteString
+ getTargetBytes() {
+ java.lang.Object ref = target_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ target_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ public Builder setTarget(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ target_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ public Builder clearTarget() {
+
+ target_ = getDefaultInstance().getTarget();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ public Builder setTargetBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ target_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object verb_ = "";
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ public java.lang.String getVerb() {
+ java.lang.Object ref = verb_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ verb_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ public com.google.protobuf.ByteString
+ getVerbBytes() {
+ java.lang.Object ref = verb_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ verb_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ public Builder setVerb(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ verb_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ public Builder clearVerb() {
+
+ verb_ = getDefaultInstance().getVerb();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ public Builder setVerbBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ verb_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object statusDetail_ = "";
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ public java.lang.String getStatusDetail() {
+ java.lang.Object ref = statusDetail_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ statusDetail_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ public com.google.protobuf.ByteString
+ getStatusDetailBytes() {
+ java.lang.Object ref = statusDetail_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ statusDetail_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ public Builder setStatusDetail(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ statusDetail_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ public Builder clearStatusDetail() {
+
+ statusDetail_ = getDefaultInstance().getStatusDetail();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ public Builder setStatusDetailBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ statusDetail_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean cancelRequested_ ;
+ /**
+ * + * Specifies if cancellation was requested for the operaiton. + *+ * + *
bool cancel_requested = 6;
+ */
+ public boolean getCancelRequested() {
+ return cancelRequested_;
+ }
+ /**
+ * + * Specifies if cancellation was requested for the operaiton. + *+ * + *
bool cancel_requested = 6;
+ */
+ public Builder setCancelRequested(boolean value) {
+
+ cancelRequested_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Specifies if cancellation was requested for the operaiton. + *+ * + *
bool cancel_requested = 6;
+ */
+ public Builder clearCancelRequested() {
+
+ cancelRequested_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object apiVersion_ = "";
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ public java.lang.String getApiVersion() {
+ java.lang.Object ref = apiVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ apiVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ public com.google.protobuf.ByteString
+ getApiVersionBytes() {
+ java.lang.Object ref = apiVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ apiVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ public Builder setApiVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ apiVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ public Builder clearApiVersion() {
+
+ apiVersion_ = getDefaultInstance().getApiVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ public Builder setApiVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ apiVersion_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.OperationMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.OperationMetadata)
+ private static final com.google.cloud.redis.v1.OperationMetadata DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.OperationMetadata();
+ }
+
+ public static com.google.cloud.redis.v1.OperationMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ boolean hasCreateTime();
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ com.google.protobuf.Timestamp getCreateTime();
+ /**
+ * + * Creation timestamp. + *+ * + *
.google.protobuf.Timestamp create_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder();
+
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ boolean hasEndTime();
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.Timestamp getEndTime();
+ /**
+ * + * End timestamp. + *+ * + *
.google.protobuf.Timestamp end_time = 2;
+ */
+ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder();
+
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ java.lang.String getTarget();
+ /**
+ * + * Operation target. + *+ * + *
string target = 3;
+ */
+ com.google.protobuf.ByteString
+ getTargetBytes();
+
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ java.lang.String getVerb();
+ /**
+ * + * Operation verb. + *+ * + *
string verb = 4;
+ */
+ com.google.protobuf.ByteString
+ getVerbBytes();
+
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ java.lang.String getStatusDetail();
+ /**
+ * + * Operation status details. + *+ * + *
string status_detail = 5;
+ */
+ com.google.protobuf.ByteString
+ getStatusDetailBytes();
+
+ /**
+ * + * Specifies if cancellation was requested for the operaiton. + *+ * + *
bool cancel_requested = 6;
+ */
+ boolean getCancelRequested();
+
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ java.lang.String getApiVersion();
+ /**
+ * + * API version. + *+ * + *
string api_version = 7;
+ */
+ com.google.protobuf.ByteString
+ getApiVersionBytes();
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java
new file mode 100644
index 000000000000..bda31b4dd122
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/UpdateInstanceRequest.java
@@ -0,0 +1,964 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ * + * Request for [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} + */ +public final class UpdateInstanceRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.UpdateInstanceRequest) + UpdateInstanceRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateInstanceRequest.newBuilder() to construct. + private UpdateInstanceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private UpdateInstanceRequest() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UpdateInstanceRequest( + 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.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + case 18: { + com.google.cloud.redis.v1.Instance.Builder subBuilder = null; + if (instance_ != null) { + subBuilder = instance_.toBuilder(); + } + instance_ = input.readMessage(com.google.cloud.redis.v1.Instance.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(instance_); + instance_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_UpdateInstanceRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.UpdateInstanceRequest.class, com.google.cloud.redis.v1.UpdateInstanceRequest.Builder.class); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + /** + *
+ * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public boolean hasUpdateMask() {
+ return updateMask_ != null;
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public com.google.protobuf.FieldMask getUpdateMask() {
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
+ return getUpdateMask();
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 2;
+ private com.google.cloud.redis.v1.Instance instance_;
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public boolean hasInstance() {
+ return instance_ != null;
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public com.google.cloud.redis.v1.Instance getInstance() {
+ return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_;
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() {
+ return getInstance();
+ }
+
+ 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 (updateMask_ != null) {
+ output.writeMessage(1, getUpdateMask());
+ }
+ if (instance_ != null) {
+ output.writeMessage(2, getInstance());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (updateMask_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getUpdateMask());
+ }
+ if (instance_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getInstance());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.google.cloud.redis.v1.UpdateInstanceRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.redis.v1.UpdateInstanceRequest other = (com.google.cloud.redis.v1.UpdateInstanceRequest) obj;
+
+ boolean result = true;
+ result = result && (hasUpdateMask() == other.hasUpdateMask());
+ if (hasUpdateMask()) {
+ result = result && getUpdateMask()
+ .equals(other.getUpdateMask());
+ }
+ result = result && (hasInstance() == other.hasInstance());
+ if (hasInstance()) {
+ result = result && getInstance()
+ .equals(other.getInstance());
+ }
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasUpdateMask()) {
+ hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateMask().hashCode();
+ }
+ if (hasInstance()) {
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.google.cloud.redis.v1.UpdateInstanceRequest 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 [UpdateInstance][google.cloud.redis.v1.CloudRedis.UpdateInstance]. + *+ * + * Protobuf type {@code google.cloud.redis.v1.UpdateInstanceRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public boolean hasUpdateMask() {
+ return updateMaskBuilder_ != null || updateMask_ != null;
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public com.google.protobuf.FieldMask getUpdateMask() {
+ if (updateMaskBuilder_ == null) {
+ return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+ } else {
+ return updateMaskBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public Builder setUpdateMask(com.google.protobuf.FieldMask value) {
+ if (updateMaskBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ updateMask_ = value;
+ onChanged();
+ } else {
+ updateMaskBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public Builder setUpdateMask(
+ com.google.protobuf.FieldMask.Builder builderForValue) {
+ if (updateMaskBuilder_ == null) {
+ updateMask_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateMaskBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) {
+ if (updateMaskBuilder_ == null) {
+ if (updateMask_ != null) {
+ updateMask_ =
+ com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial();
+ } else {
+ updateMask_ = value;
+ }
+ onChanged();
+ } else {
+ updateMaskBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public Builder clearUpdateMask() {
+ if (updateMaskBuilder_ == null) {
+ updateMask_ = null;
+ onChanged();
+ } else {
+ updateMask_ = null;
+ updateMaskBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() {
+
+ onChanged();
+ return getUpdateMaskFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() {
+ if (updateMaskBuilder_ != null) {
+ return updateMaskBuilder_.getMessageOrBuilder();
+ } else {
+ return updateMask_ == null ?
+ com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_;
+ }
+ }
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>
+ getUpdateMaskFieldBuilder() {
+ if (updateMaskBuilder_ == null) {
+ updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>(
+ getUpdateMask(),
+ getParentForChildren(),
+ isClean());
+ updateMask_ = null;
+ }
+ return updateMaskBuilder_;
+ }
+
+ private com.google.cloud.redis.v1.Instance instance_ = null;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder> instanceBuilder_;
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public boolean hasInstance() {
+ return instanceBuilder_ != null || instance_ != null;
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public com.google.cloud.redis.v1.Instance getInstance() {
+ if (instanceBuilder_ == null) {
+ return instance_ == null ? com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_;
+ } else {
+ return instanceBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public Builder setInstance(com.google.cloud.redis.v1.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instance_ = value;
+ onChanged();
+ } else {
+ instanceBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public Builder setInstance(
+ com.google.cloud.redis.v1.Instance.Builder builderForValue) {
+ if (instanceBuilder_ == null) {
+ instance_ = builderForValue.build();
+ onChanged();
+ } else {
+ instanceBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public Builder mergeInstance(com.google.cloud.redis.v1.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (instance_ != null) {
+ instance_ =
+ com.google.cloud.redis.v1.Instance.newBuilder(instance_).mergeFrom(value).buildPartial();
+ } else {
+ instance_ = value;
+ }
+ onChanged();
+ } else {
+ instanceBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public Builder clearInstance() {
+ if (instanceBuilder_ == null) {
+ instance_ = null;
+ onChanged();
+ } else {
+ instance_ = null;
+ instanceBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public com.google.cloud.redis.v1.Instance.Builder getInstanceBuilder() {
+
+ onChanged();
+ return getInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ public com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder() {
+ if (instanceBuilder_ != null) {
+ return instanceBuilder_.getMessageOrBuilder();
+ } else {
+ return instance_ == null ?
+ com.google.cloud.redis.v1.Instance.getDefaultInstance() : instance_;
+ }
+ }
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>
+ getInstanceFieldBuilder() {
+ if (instanceBuilder_ == null) {
+ instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.redis.v1.Instance, com.google.cloud.redis.v1.Instance.Builder, com.google.cloud.redis.v1.InstanceOrBuilder>(
+ getInstance(),
+ getParentForChildren(),
+ isClean());
+ instance_ = null;
+ }
+ return instanceBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:google.cloud.redis.v1.UpdateInstanceRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.redis.v1.UpdateInstanceRequest)
+ private static final com.google.cloud.redis.v1.UpdateInstanceRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.redis.v1.UpdateInstanceRequest();
+ }
+
+ public static com.google.cloud.redis.v1.UpdateInstanceRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ boolean hasUpdateMask();
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ com.google.protobuf.FieldMask getUpdateMask();
+ /**
+ * + * Required. Mask of fields to update. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these + * fields from [Instance][CloudRedis.Instance]: + * * `displayName` + * * `labels` + * * `memorySizeGb` + * * `redisConfig` + *+ * + *
.google.protobuf.FieldMask update_mask = 1;
+ */
+ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder();
+
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ boolean hasInstance();
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ com.google.cloud.redis.v1.Instance getInstance();
+ /**
+ * + * Required. Update description. + * Only fields specified in update_mask are updated. + *+ * + *
.google.cloud.redis.v1.Instance instance = 2;
+ */
+ com.google.cloud.redis.v1.InstanceOrBuilder getInstanceOrBuilder();
+}
diff --git a/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java
new file mode 100644
index 000000000000..1fe4d178caaa
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-redis-v1/src/main/java/com/google/cloud/redis/v1/ZoneMetadata.java
@@ -0,0 +1,423 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/redis/v1/cloud_redis.proto
+
+package com.google.cloud.redis.v1;
+
+/**
+ * + * Defines specific information for a particular zone. Currently empty and + * reserved for future use only. + *+ * + * Protobuf type {@code google.cloud.redis.v1.ZoneMetadata} + */ +public final class ZoneMetadata extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.redis.v1.ZoneMetadata) + ZoneMetadataOrBuilder { +private static final long serialVersionUID = 0L; + // Use ZoneMetadata.newBuilder() to construct. + private ZoneMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private ZoneMetadata() { + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ZoneMetadata( + 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; + default: { + if (!parseUnknownFieldProto3( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.redis.v1.CloudRedisServiceV1Proto.internal_static_google_cloud_redis_v1_ZoneMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.redis.v1.ZoneMetadata.class, com.google.cloud.redis.v1.ZoneMetadata.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.redis.v1.ZoneMetadata)) { + return super.equals(obj); + } + com.google.cloud.redis.v1.ZoneMetadata other = (com.google.cloud.redis.v1.ZoneMetadata) obj; + + boolean result = true; + result = result && unknownFields.equals(other.unknownFields); + return result; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.google.cloud.redis.v1.ZoneMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.google.cloud.redis.v1.ZoneMetadata 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; + } + /** + *
+ * Defines specific information for a particular zone. Currently empty and + * reserved for future use only. + *+ * + * Protobuf type {@code google.cloud.redis.v1.ZoneMetadata} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Video annotation progress. Included in the `metadata` + * field of the `Operation` returned by the `GetOperation` + * call of the `google::longrunning::Operations` service. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress} + */ +public final class AnnotateVideoProgress extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) + AnnotateVideoProgressOrBuilder { +private static final long serialVersionUID = 0L; + // Use AnnotateVideoProgress.newBuilder() to construct. + private AnnotateVideoProgress(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AnnotateVideoProgress() { + annotationProgress_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnnotateVideoProgress( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + annotationProgress_ = new java.util.ArrayList
+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public java.util.List+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public java.util.List extends com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder>
+ getAnnotationProgressOrBuilderList() {
+ return annotationProgress_;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public int getAnnotationProgressCount() {
+ return annotationProgress_.size();
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getAnnotationProgress(int index) {
+ return annotationProgress_.get(index);
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder getAnnotationProgressOrBuilder(
+ int index) {
+ return annotationProgress_.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 {
+ for (int i = 0; i < annotationProgress_.size(); i++) {
+ output.writeMessage(1, annotationProgress_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < annotationProgress_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, annotationProgress_.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.videointelligence.v1p2beta1.AnnotateVideoProgress)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress other = (com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress) obj;
+
+ boolean result = true;
+ result = result && getAnnotationProgressList()
+ .equals(other.getAnnotationProgressList());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getAnnotationProgressCount() > 0) {
+ hash = (37 * hash) + ANNOTATION_PROGRESS_FIELD_NUMBER;
+ hash = (53 * hash) + getAnnotationProgressList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress 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.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress 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.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress 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.videointelligence.v1p2beta1.AnnotateVideoProgress parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress 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.videointelligence.v1p2beta1.AnnotateVideoProgress parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress 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.videointelligence.v1p2beta1.AnnotateVideoProgress 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;
+ }
+ /**
+ * + * Video annotation progress. Included in the `metadata` + * field of the `Operation` returned by the `GetOperation` + * call of the `google::longrunning::Operations` service. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoProgress} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public java.util.List+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public int getAnnotationProgressCount() {
+ if (annotationProgressBuilder_ == null) {
+ return annotationProgress_.size();
+ } else {
+ return annotationProgressBuilder_.getCount();
+ }
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getAnnotationProgress(int index) {
+ if (annotationProgressBuilder_ == null) {
+ return annotationProgress_.get(index);
+ } else {
+ return annotationProgressBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder setAnnotationProgress(
+ int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress value) {
+ if (annotationProgressBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.set(index, value);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder setAnnotationProgress(
+ int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder builderForValue) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationProgressBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder addAnnotationProgress(com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress value) {
+ if (annotationProgressBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.add(value);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder addAnnotationProgress(
+ int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress value) {
+ if (annotationProgressBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.add(index, value);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder addAnnotationProgress(
+ com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder builderForValue) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.add(builderForValue.build());
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder addAnnotationProgress(
+ int index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder builderForValue) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder addAllAnnotationProgress(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress> values) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, annotationProgress_);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder clearAnnotationProgress() {
+ if (annotationProgressBuilder_ == null) {
+ annotationProgress_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public Builder removeAnnotationProgress(int index) {
+ if (annotationProgressBuilder_ == null) {
+ ensureAnnotationProgressIsMutable();
+ annotationProgress_.remove(index);
+ onChanged();
+ } else {
+ annotationProgressBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder getAnnotationProgressBuilder(
+ int index) {
+ return getAnnotationProgressFieldBuilder().getBuilder(index);
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder getAnnotationProgressOrBuilder(
+ int index) {
+ if (annotationProgressBuilder_ == null) {
+ return annotationProgress_.get(index); } else {
+ return annotationProgressBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public java.util.List extends com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder>
+ getAnnotationProgressOrBuilderList() {
+ if (annotationProgressBuilder_ != null) {
+ return annotationProgressBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(annotationProgress_);
+ }
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder addAnnotationProgressBuilder() {
+ return getAnnotationProgressFieldBuilder().addBuilder(
+ com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.getDefaultInstance());
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.Builder addAnnotationProgressBuilder(
+ int index) {
+ return getAnnotationProgressFieldBuilder().addBuilder(
+ index, com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress.getDefaultInstance());
+ }
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ public java.util.List+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ java.util.List+ * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress getAnnotationProgress(int index);
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ int getAnnotationProgressCount();
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ java.util.List extends com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder>
+ getAnnotationProgressOrBuilderList();
+ /**
+ * + * Progress metadata for all videos specified in `AnnotateVideoRequest`. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgress annotation_progress = 1;
+ */
+ com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationProgressOrBuilder getAnnotationProgressOrBuilder(
+ int index);
+}
diff --git a/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java
new file mode 100644
index 000000000000..201e27416af7
--- /dev/null
+++ b/google-api-grpc/proto-google-cloud-video-intelligence-v1p2beta1/src/main/java/com/google/cloud/videointelligence/v1p2beta1/AnnotateVideoRequest.java
@@ -0,0 +1,1619 @@
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/cloud/videointelligence/v1p2beta1/video_intelligence.proto
+
+package com.google.cloud.videointelligence.v1p2beta1;
+
+/**
+ * + * Video annotation request. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest} + */ +public final class AnnotateVideoRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) + AnnotateVideoRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use AnnotateVideoRequest.newBuilder() to construct. + private AnnotateVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + private AnnotateVideoRequest() { + inputUri_ = ""; + inputContent_ = com.google.protobuf.ByteString.EMPTY; + features_ = java.util.Collections.emptyList(); + outputUri_ = ""; + locationId_ = ""; + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AnnotateVideoRequest( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + inputUri_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) { + features_ = new java.util.ArrayList
+ * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + * A video URI may include wildcards in `object-id`, and thus identify + * multiple videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public java.lang.String getInputUri() {
+ java.lang.Object ref = inputUri_;
+ 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();
+ inputUri_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + * A video URI may include wildcards in `object-id`, and thus identify + * multiple videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public com.google.protobuf.ByteString
+ getInputUriBytes() {
+ java.lang.Object ref = inputUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ inputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INPUT_CONTENT_FIELD_NUMBER = 6;
+ private com.google.protobuf.ByteString inputContent_;
+ /**
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ public com.google.protobuf.ByteString getInputContent() {
+ return inputContent_;
+ }
+
+ public static final int FEATURES_FIELD_NUMBER = 2;
+ private java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public int getFeaturesCount() {
+ return features_.size();
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int index) {
+ return features_converter_.convert(features_.get(index));
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public int getFeaturesValue(int index) {
+ return features_.get(index);
+ }
+ private int featuresMemoizedSerializedSize;
+
+ public static final int VIDEO_CONTEXT_FIELD_NUMBER = 3;
+ private com.google.cloud.videointelligence.v1p2beta1.VideoContext videoContext_;
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public boolean hasVideoContext() {
+ return videoContext_ != null;
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext() {
+ return videoContext_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoContext.getDefaultInstance() : videoContext_;
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder getVideoContextOrBuilder() {
+ return getVideoContext();
+ }
+
+ public static final int OUTPUT_URI_FIELD_NUMBER = 4;
+ private volatile java.lang.Object outputUri_;
+ /**
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public java.lang.String getOutputUri() {
+ java.lang.Object ref = outputUri_;
+ 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();
+ outputUri_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public com.google.protobuf.ByteString
+ getOutputUriBytes() {
+ java.lang.Object ref = outputUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ outputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int LOCATION_ID_FIELD_NUMBER = 5;
+ private volatile java.lang.Object locationId_;
+ /**
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public java.lang.String getLocationId() {
+ java.lang.Object ref = locationId_;
+ 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();
+ locationId_ = s;
+ return s;
+ }
+ }
+ /**
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public com.google.protobuf.ByteString
+ getLocationIdBytes() {
+ java.lang.Object ref = locationId_;
+ if (ref instanceof java.lang.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;
+ }
+ }
+
+ 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 {
+ getSerializedSize();
+ if (!getInputUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, inputUri_);
+ }
+ if (getFeaturesList().size() > 0) {
+ output.writeUInt32NoTag(18);
+ output.writeUInt32NoTag(featuresMemoizedSerializedSize);
+ }
+ for (int i = 0; i < features_.size(); i++) {
+ output.writeEnumNoTag(features_.get(i));
+ }
+ if (videoContext_ != null) {
+ output.writeMessage(3, getVideoContext());
+ }
+ if (!getOutputUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, outputUri_);
+ }
+ if (!getLocationIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, locationId_);
+ }
+ if (!inputContent_.isEmpty()) {
+ output.writeBytes(6, inputContent_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getInputUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, inputUri_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < features_.size(); i++) {
+ dataSize += com.google.protobuf.CodedOutputStream
+ .computeEnumSizeNoTag(features_.get(i));
+ }
+ size += dataSize;
+ if (!getFeaturesList().isEmpty()) { size += 1;
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32SizeNoTag(dataSize);
+ }featuresMemoizedSerializedSize = dataSize;
+ }
+ if (videoContext_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getVideoContext());
+ }
+ if (!getOutputUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, outputUri_);
+ }
+ if (!getLocationIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, locationId_);
+ }
+ if (!inputContent_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(6, inputContent_);
+ }
+ 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.videointelligence.v1p2beta1.AnnotateVideoRequest)) {
+ return super.equals(obj);
+ }
+ com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest other = (com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest) obj;
+
+ boolean result = true;
+ result = result && getInputUri()
+ .equals(other.getInputUri());
+ result = result && getInputContent()
+ .equals(other.getInputContent());
+ result = result && features_.equals(other.features_);
+ result = result && (hasVideoContext() == other.hasVideoContext());
+ if (hasVideoContext()) {
+ result = result && getVideoContext()
+ .equals(other.getVideoContext());
+ }
+ result = result && getOutputUri()
+ .equals(other.getOutputUri());
+ result = result && getLocationId()
+ .equals(other.getLocationId());
+ result = result && unknownFields.equals(other.unknownFields);
+ return result;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INPUT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getInputUri().hashCode();
+ hash = (37 * hash) + INPUT_CONTENT_FIELD_NUMBER;
+ hash = (53 * hash) + getInputContent().hashCode();
+ if (getFeaturesCount() > 0) {
+ hash = (37 * hash) + FEATURES_FIELD_NUMBER;
+ hash = (53 * hash) + features_.hashCode();
+ }
+ if (hasVideoContext()) {
+ hash = (37 * hash) + VIDEO_CONTEXT_FIELD_NUMBER;
+ hash = (53 * hash) + getVideoContext().hashCode();
+ }
+ hash = (37 * hash) + OUTPUT_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getOutputUri().hashCode();
+ hash = (37 * hash) + LOCATION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getLocationId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest 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.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest 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.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest 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.videointelligence.v1p2beta1.AnnotateVideoRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest 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.videointelligence.v1p2beta1.AnnotateVideoRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest 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.videointelligence.v1p2beta1.AnnotateVideoRequest 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;
+ }
+ /**
+ * + * Video annotation request. + *+ * + * Protobuf type {@code google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder
+ * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + * A video URI may include wildcards in `object-id`, and thus identify + * multiple videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public java.lang.String getInputUri() {
+ java.lang.Object ref = inputUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ inputUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + * A video URI may include wildcards in `object-id`, and thus identify + * multiple videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public com.google.protobuf.ByteString
+ getInputUriBytes() {
+ java.lang.Object ref = inputUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ inputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + * A video URI may include wildcards in `object-id`, and thus identify + * multiple videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public Builder setInputUri(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ inputUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + * A video URI may include wildcards in `object-id`, and thus identify + * multiple videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public Builder clearInputUri() {
+
+ inputUri_ = getDefaultInstance().getInputUri();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Input video location. Currently, only + * [Google Cloud Storage](https://cloud.google.com/storage/) URIs are + * supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + * A video URI may include wildcards in `object-id`, and thus identify + * multiple videos. Supported wildcards: '*' to match 0 or more characters; + * '?' to match 1 character. If unset, the input video should be embedded + * in the request as `input_content`. If set, `input_content` should be unset. + *+ * + *
string input_uri = 1;
+ */
+ public Builder setInputUriBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ inputUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString inputContent_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ public com.google.protobuf.ByteString getInputContent() {
+ return inputContent_;
+ }
+ /**
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ public Builder setInputContent(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ inputContent_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * The video data bytes. + * If unset, the input video(s) should be specified via `input_uri`. + * If set, `input_uri` should be unset. + *+ * + *
bytes input_content = 6;
+ */
+ public Builder clearInputContent() {
+
+ inputContent_ = getDefaultInstance().getInputContent();
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public int getFeaturesCount() {
+ return features_.size();
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.Feature getFeatures(int index) {
+ return features_converter_.convert(features_.get(index));
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public Builder setFeatures(
+ int index, com.google.cloud.videointelligence.v1p2beta1.Feature value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFeaturesIsMutable();
+ features_.set(index, value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public Builder addFeatures(com.google.cloud.videointelligence.v1p2beta1.Feature value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureFeaturesIsMutable();
+ features_.add(value.getNumber());
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public Builder addAllFeatures(
+ java.lang.Iterable extends com.google.cloud.videointelligence.v1p2beta1.Feature> values) {
+ ensureFeaturesIsMutable();
+ for (com.google.cloud.videointelligence.v1p2beta1.Feature value : values) {
+ features_.add(value.getNumber());
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public Builder clearFeatures() {
+ features_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public java.util.List+ * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public int getFeaturesValue(int index) {
+ return features_.get(index);
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public Builder setFeaturesValue(
+ int index, int value) {
+ ensureFeaturesIsMutable();
+ features_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public Builder addFeaturesValue(int value) {
+ ensureFeaturesIsMutable();
+ features_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Requested video annotation features. + *+ * + *
repeated .google.cloud.videointelligence.v1p2beta1.Feature features = 2;
+ */
+ public Builder addAllFeaturesValue(
+ java.lang.Iterable+ * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public boolean hasVideoContext() {
+ return videoContextBuilder_ != null || videoContext_ != null;
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoContext getVideoContext() {
+ if (videoContextBuilder_ == null) {
+ return videoContext_ == null ? com.google.cloud.videointelligence.v1p2beta1.VideoContext.getDefaultInstance() : videoContext_;
+ } else {
+ return videoContextBuilder_.getMessage();
+ }
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public Builder setVideoContext(com.google.cloud.videointelligence.v1p2beta1.VideoContext value) {
+ if (videoContextBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ videoContext_ = value;
+ onChanged();
+ } else {
+ videoContextBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public Builder setVideoContext(
+ com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder builderForValue) {
+ if (videoContextBuilder_ == null) {
+ videoContext_ = builderForValue.build();
+ onChanged();
+ } else {
+ videoContextBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public Builder mergeVideoContext(com.google.cloud.videointelligence.v1p2beta1.VideoContext value) {
+ if (videoContextBuilder_ == null) {
+ if (videoContext_ != null) {
+ videoContext_ =
+ com.google.cloud.videointelligence.v1p2beta1.VideoContext.newBuilder(videoContext_).mergeFrom(value).buildPartial();
+ } else {
+ videoContext_ = value;
+ }
+ onChanged();
+ } else {
+ videoContextBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public Builder clearVideoContext() {
+ if (videoContextBuilder_ == null) {
+ videoContext_ = null;
+ onChanged();
+ } else {
+ videoContext_ = null;
+ videoContextBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder getVideoContextBuilder() {
+
+ onChanged();
+ return getVideoContextFieldBuilder().getBuilder();
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ public com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder getVideoContextOrBuilder() {
+ if (videoContextBuilder_ != null) {
+ return videoContextBuilder_.getMessageOrBuilder();
+ } else {
+ return videoContext_ == null ?
+ com.google.cloud.videointelligence.v1p2beta1.VideoContext.getDefaultInstance() : videoContext_;
+ }
+ }
+ /**
+ * + * Additional video context and/or feature-specific parameters. + *+ * + *
.google.cloud.videointelligence.v1p2beta1.VideoContext video_context = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p2beta1.VideoContext, com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder>
+ getVideoContextFieldBuilder() {
+ if (videoContextBuilder_ == null) {
+ videoContextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.cloud.videointelligence.v1p2beta1.VideoContext, com.google.cloud.videointelligence.v1p2beta1.VideoContext.Builder, com.google.cloud.videointelligence.v1p2beta1.VideoContextOrBuilder>(
+ getVideoContext(),
+ getParentForChildren(),
+ isClean());
+ videoContext_ = null;
+ }
+ return videoContextBuilder_;
+ }
+
+ private java.lang.Object outputUri_ = "";
+ /**
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public java.lang.String getOutputUri() {
+ java.lang.Object ref = outputUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ outputUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public com.google.protobuf.ByteString
+ getOutputUriBytes() {
+ java.lang.Object ref = outputUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ outputUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public Builder setOutputUri(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ outputUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public Builder clearOutputUri() {
+
+ outputUri_ = getDefaultInstance().getOutputUri();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional location where the output (in JSON format) should be stored. + * Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) + * URIs are supported, which must be specified in the following format: + * `gs://bucket-id/object-id` (other URI formats return + * [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more information, see + * [Request URIs](/storage/docs/reference-uris). + *+ * + *
string output_uri = 4;
+ */
+ public Builder setOutputUriBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ outputUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object locationId_ = "";
+ /**
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ 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 cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ 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 cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public Builder setLocationId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ locationId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public Builder clearLocationId() {
+
+ locationId_ = getDefaultInstance().getLocationId();
+ onChanged();
+ return this;
+ }
+ /**
+ * + * Optional cloud region where annotation should take place. Supported cloud + * regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region + * is specified, a region will be determined based on video file location. + *+ * + *
string location_id = 5;
+ */
+ public Builder setLocationIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ locationId_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFieldsProto3(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.videointelligence.v1p2beta1.AnnotateVideoRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest)
+ private static final com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest();
+ }
+
+ public static com.google.cloud.videointelligence.v1p2beta1.AnnotateVideoRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser