This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpannerExecutorProxyClient spannerExecutorProxyClient =
+ * SpannerExecutorProxyClient.create()) {
+ * BidiStream bidiStream =
+ * spannerExecutorProxyClient.executeActionAsyncCallable().call();
+ * SpannerAsyncActionRequest request =
+ * SpannerAsyncActionRequest.newBuilder()
+ * .setActionId(198295492)
+ * .setAction(SpannerAction.newBuilder().build())
+ * .build();
+ * bidiStream.send(request);
+ * for (SpannerAsyncActionResponse response : bidiStream) {
+ * // Do something when a response is received.
+ * }
+ * }
+ * }
+ *
+ * Note: close() needs to be called on the SpannerExecutorProxyClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of SpannerExecutorProxySettings + * to create(). For example: + * + *
To customize credentials: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpannerExecutorProxySettings spannerExecutorProxySettings =
+ * SpannerExecutorProxySettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * SpannerExecutorProxyClient spannerExecutorProxyClient =
+ * SpannerExecutorProxyClient.create(spannerExecutorProxySettings);
+ * }
+ *
+ * To customize the endpoint: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpannerExecutorProxySettings spannerExecutorProxySettings =
+ * SpannerExecutorProxySettings.newBuilder().setEndpoint(myEndpoint).build();
+ * SpannerExecutorProxyClient spannerExecutorProxyClient =
+ * SpannerExecutorProxyClient.create(spannerExecutorProxySettings);
+ * }
+ *
+ * Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@Generated("by gapic-generator-java") +public class SpannerExecutorProxyClient implements BackgroundResource { + private final SpannerExecutorProxySettings settings; + private final SpannerExecutorProxyStub stub; + + /** Constructs an instance of SpannerExecutorProxyClient with default settings. */ + public static final SpannerExecutorProxyClient create() throws IOException { + return create(SpannerExecutorProxySettings.newBuilder().build()); + } + + /** + * Constructs an instance of SpannerExecutorProxyClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final SpannerExecutorProxyClient create(SpannerExecutorProxySettings settings) + throws IOException { + return new SpannerExecutorProxyClient(settings); + } + + /** + * Constructs an instance of SpannerExecutorProxyClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(SpannerExecutorProxySettings). + */ + public static final SpannerExecutorProxyClient create(SpannerExecutorProxyStub stub) { + return new SpannerExecutorProxyClient(stub); + } + + /** + * Constructs an instance of SpannerExecutorProxyClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected SpannerExecutorProxyClient(SpannerExecutorProxySettings settings) throws IOException { + this.settings = settings; + this.stub = ((SpannerExecutorProxyStubSettings) settings.getStubSettings()).createStub(); + } + + protected SpannerExecutorProxyClient(SpannerExecutorProxyStub stub) { + this.settings = null; + this.stub = stub; + } + + public final SpannerExecutorProxySettings getSettings() { + return settings; + } + + public SpannerExecutorProxyStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * ExecuteActionAsync is a streaming call that starts executing a new Spanner action. + * + *
For each request, the server will reply with one or more responses, but only the last + * response will contain status in the outcome. + * + *
Responses can be matched to requests by action_id. It is allowed to have multiple actions in + * flight--in that case, actions are be executed in parallel. + * + *
Sample code: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpannerExecutorProxyClient spannerExecutorProxyClient =
+ * SpannerExecutorProxyClient.create()) {
+ * BidiStream bidiStream =
+ * spannerExecutorProxyClient.executeActionAsyncCallable().call();
+ * SpannerAsyncActionRequest request =
+ * SpannerAsyncActionRequest.newBuilder()
+ * .setActionId(198295492)
+ * .setAction(SpannerAction.newBuilder().build())
+ * .build();
+ * bidiStream.send(request);
+ * for (SpannerAsyncActionResponse response : bidiStream) {
+ * // Do something when a response is received.
+ * }
+ * }
+ * }
+ */
+ public final BidiStreamingCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of executeActionAsync to 30 seconds: + * + *
{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpannerExecutorProxySettings.Builder spannerExecutorProxySettingsBuilder =
+ * SpannerExecutorProxySettings.newBuilder();
+ * spannerExecutorProxySettingsBuilder
+ * .executeActionAsyncSettings()
+ * .setRetrySettings(
+ * spannerExecutorProxySettingsBuilder
+ * .executeActionAsyncSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * SpannerExecutorProxySettings spannerExecutorProxySettings =
+ * spannerExecutorProxySettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class SpannerExecutorProxySettings extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The interfaces provided are listed below, along with usage samples.
+ *
+ * ======================= SpannerExecutorProxyClient =======================
+ *
+ * Service Description: Service that executes SpannerActions asynchronously.
+ *
+ * Sample for SpannerExecutorProxyClient:
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcSpannerExecutorProxyCallableFactory implements GrpcStubCallableFactory {
+
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public class GrpcSpannerExecutorProxyStub extends SpannerExecutorProxyStub {
+ private static final MethodDescriptor This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator-java")
+public abstract class SpannerExecutorProxyStub implements BackgroundResource {
+
+ public BidiStreamingCallable The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of executeActionAsync to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (SpannerExecutorProxyClient spannerExecutorProxyClient =
+ * SpannerExecutorProxyClient.create()) {
+ * BidiStream
+ */
+@Generated("by gapic-generator-java")
+package com.google.cloud.spanner.executor.v1;
+
+import javax.annotation.Generated;
diff --git a/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyCallableFactory.java b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyCallableFactory.java
new file mode 100644
index 00000000000..e890b9d400d
--- /dev/null
+++ b/google-cloud-spanner-executor/src/main/java/com/google/cloud/spanner/executor/v1/stub/GrpcSpannerExecutorProxyCallableFactory.java
@@ -0,0 +1,113 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.spanner.executor.v1.stub;
+
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.Operation;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS.
+/**
+ * gRPC callable factory implementation for the SpannerExecutorProxy service API.
+ *
+ *
+ *
+ *
+ * {@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * SpannerExecutorProxyStubSettings.Builder spannerExecutorProxySettingsBuilder =
+ * SpannerExecutorProxyStubSettings.newBuilder();
+ * spannerExecutorProxySettingsBuilder
+ * .executeActionAsyncSettings()
+ * .setRetrySettings(
+ * spannerExecutorProxySettingsBuilder
+ * .executeActionAsyncSettings()
+ * .getRetrySettings()
+ * .toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30))
+ * .build());
+ * SpannerExecutorProxyStubSettings spannerExecutorProxySettings =
+ * spannerExecutorProxySettingsBuilder.build();
+ * }
+ */
+@Generated("by gapic-generator-java")
+public class SpannerExecutorProxyStubSettings
+ extends StubSettings
+ * Service that executes SpannerActions asynchronously. + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/spanner/executor/v1/cloud_executor.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class SpannerExecutorProxyGrpc { + + private SpannerExecutorProxyGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.spanner.executor.v1.SpannerExecutorProxy"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.spanner.executor.v1.SpannerAsyncActionRequest, + com.google.spanner.executor.v1.SpannerAsyncActionResponse> + getExecuteActionAsyncMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExecuteActionAsync", + requestType = com.google.spanner.executor.v1.SpannerAsyncActionRequest.class, + responseType = com.google.spanner.executor.v1.SpannerAsyncActionResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.spanner.executor.v1.SpannerAsyncActionRequest, + com.google.spanner.executor.v1.SpannerAsyncActionResponse> + getExecuteActionAsyncMethod() { + io.grpc.MethodDescriptor< + com.google.spanner.executor.v1.SpannerAsyncActionRequest, + com.google.spanner.executor.v1.SpannerAsyncActionResponse> + getExecuteActionAsyncMethod; + if ((getExecuteActionAsyncMethod = SpannerExecutorProxyGrpc.getExecuteActionAsyncMethod) + == null) { + synchronized (SpannerExecutorProxyGrpc.class) { + if ((getExecuteActionAsyncMethod = SpannerExecutorProxyGrpc.getExecuteActionAsyncMethod) + == null) { + SpannerExecutorProxyGrpc.getExecuteActionAsyncMethod = + getExecuteActionAsyncMethod = + io.grpc.MethodDescriptor + .
+ * Service that executes SpannerActions asynchronously. + *+ */ + public interface AsyncService { + + /** + * + * + *
+ * ExecuteActionAsync is a streaming call that starts executing a new Spanner + * action. + * For each request, the server will reply with one or more responses, but + * only the last response will contain status in the outcome. + * Responses can be matched to requests by action_id. It is allowed to have + * multiple actions in flight--in that case, actions are be executed in + * parallel. + *+ */ + default io.grpc.stub.StreamObserver
+ * Service that executes SpannerActions asynchronously. + *+ */ + public abstract static class SpannerExecutorProxyImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return SpannerExecutorProxyGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service SpannerExecutorProxy. + * + *
+ * Service that executes SpannerActions asynchronously. + *+ */ + public static final class SpannerExecutorProxyStub + extends io.grpc.stub.AbstractAsyncStub
+ * ExecuteActionAsync is a streaming call that starts executing a new Spanner + * action. + * For each request, the server will reply with one or more responses, but + * only the last response will contain status in the outcome. + * Responses can be matched to requests by action_id. It is allowed to have + * multiple actions in flight--in that case, actions are be executed in + * parallel. + *+ */ + public io.grpc.stub.StreamObserver
+ * Service that executes SpannerActions asynchronously. + *+ */ + public static final class SpannerExecutorProxyBlockingStub + extends io.grpc.stub.AbstractBlockingStub
+ * Service that executes SpannerActions asynchronously. + *+ */ + public static final class SpannerExecutorProxyFutureStub + extends io.grpc.stub.AbstractFutureStub
+ * AdminAction defines all the cloud spanner admin actions, including + * instance/database admin ops, backup ops and operation actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.AdminAction} + */ +public final class AdminAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.AdminAction) + AdminActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdminAction.newBuilder() to construct. + private AdminAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AdminAction() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdminAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_AdminAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_AdminAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.AdminAction.class, + com.google.spanner.executor.v1.AdminAction.Builder.class); + } + + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CREATE_USER_INSTANCE_CONFIG(1), + UPDATE_USER_INSTANCE_CONFIG(2), + DELETE_USER_INSTANCE_CONFIG(3), + GET_CLOUD_INSTANCE_CONFIG(4), + LIST_INSTANCE_CONFIGS(5), + CREATE_CLOUD_INSTANCE(6), + UPDATE_CLOUD_INSTANCE(7), + DELETE_CLOUD_INSTANCE(8), + LIST_CLOUD_INSTANCES(9), + GET_CLOUD_INSTANCE(10), + CREATE_CLOUD_DATABASE(11), + UPDATE_CLOUD_DATABASE_DDL(12), + UPDATE_CLOUD_DATABASE(27), + DROP_CLOUD_DATABASE(13), + LIST_CLOUD_DATABASES(14), + LIST_CLOUD_DATABASE_OPERATIONS(15), + RESTORE_CLOUD_DATABASE(16), + GET_CLOUD_DATABASE(17), + CREATE_CLOUD_BACKUP(18), + COPY_CLOUD_BACKUP(19), + GET_CLOUD_BACKUP(20), + UPDATE_CLOUD_BACKUP(21), + DELETE_CLOUD_BACKUP(22), + LIST_CLOUD_BACKUPS(23), + LIST_CLOUD_BACKUP_OPERATIONS(24), + GET_OPERATION(25), + CANCEL_OPERATION(26), + RECONFIGURE_CLOUD_DATABASE(28), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 1: + return CREATE_USER_INSTANCE_CONFIG; + case 2: + return UPDATE_USER_INSTANCE_CONFIG; + case 3: + return DELETE_USER_INSTANCE_CONFIG; + case 4: + return GET_CLOUD_INSTANCE_CONFIG; + case 5: + return LIST_INSTANCE_CONFIGS; + case 6: + return CREATE_CLOUD_INSTANCE; + case 7: + return UPDATE_CLOUD_INSTANCE; + case 8: + return DELETE_CLOUD_INSTANCE; + case 9: + return LIST_CLOUD_INSTANCES; + case 10: + return GET_CLOUD_INSTANCE; + case 11: + return CREATE_CLOUD_DATABASE; + case 12: + return UPDATE_CLOUD_DATABASE_DDL; + case 27: + return UPDATE_CLOUD_DATABASE; + case 13: + return DROP_CLOUD_DATABASE; + case 14: + return LIST_CLOUD_DATABASES; + case 15: + return LIST_CLOUD_DATABASE_OPERATIONS; + case 16: + return RESTORE_CLOUD_DATABASE; + case 17: + return GET_CLOUD_DATABASE; + case 18: + return CREATE_CLOUD_BACKUP; + case 19: + return COPY_CLOUD_BACKUP; + case 20: + return GET_CLOUD_BACKUP; + case 21: + return UPDATE_CLOUD_BACKUP; + case 22: + return DELETE_CLOUD_BACKUP; + case 23: + return LIST_CLOUD_BACKUPS; + case 24: + return LIST_CLOUD_BACKUP_OPERATIONS; + case 25: + return GET_OPERATION; + case 26: + return CANCEL_OPERATION; + case 28: + return RECONFIGURE_CLOUD_DATABASE; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int CREATE_USER_INSTANCE_CONFIG_FIELD_NUMBER = 1; + /** + * + * + *
+ * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ *
+ * @return Whether the createUserInstanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateUserInstanceConfig() {
+ return actionCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ *
+ * @return The createUserInstanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateUserInstanceConfigAction
+ getCreateUserInstanceConfig() {
+ if (actionCase_ == 1) {
+ return (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder
+ getCreateUserInstanceConfigOrBuilder() {
+ if (actionCase_ == 1) {
+ return (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance();
+ }
+
+ public static final int UPDATE_USER_INSTANCE_CONFIG_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ *
+ * @return Whether the updateUserInstanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateUserInstanceConfig() {
+ return actionCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ *
+ * @return The updateUserInstanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateUserInstanceConfigAction
+ getUpdateUserInstanceConfig() {
+ if (actionCase_ == 2) {
+ return (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder
+ getUpdateUserInstanceConfigOrBuilder() {
+ if (actionCase_ == 2) {
+ return (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.getDefaultInstance();
+ }
+
+ public static final int DELETE_USER_INSTANCE_CONFIG_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ *
+ * @return Whether the deleteUserInstanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeleteUserInstanceConfig() {
+ return actionCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ *
+ * @return The deleteUserInstanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction
+ getDeleteUserInstanceConfig() {
+ if (actionCase_ == 3) {
+ return (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder
+ getDeleteUserInstanceConfigOrBuilder() {
+ if (actionCase_ == 3) {
+ return (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance();
+ }
+
+ public static final int GET_CLOUD_INSTANCE_CONFIG_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ *
+ * @return Whether the getCloudInstanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetCloudInstanceConfig() {
+ return actionCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ *
+ * @return The getCloudInstanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudInstanceConfigAction getGetCloudInstanceConfig() {
+ if (actionCase_ == 4) {
+ return (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder
+ getGetCloudInstanceConfigOrBuilder() {
+ if (actionCase_ == 4) {
+ return (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance();
+ }
+
+ public static final int LIST_INSTANCE_CONFIGS_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ *
+ * @return Whether the listInstanceConfigs field is set.
+ */
+ @java.lang.Override
+ public boolean hasListInstanceConfigs() {
+ return actionCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ *
+ * @return The listInstanceConfigs.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction getListInstanceConfigs() {
+ if (actionCase_ == 5) {
+ return (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder
+ getListInstanceConfigsOrBuilder() {
+ if (actionCase_ == 5) {
+ return (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance();
+ }
+
+ public static final int CREATE_CLOUD_INSTANCE_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ *
+ * @return Whether the createCloudInstance field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateCloudInstance() {
+ return actionCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ *
+ * @return The createCloudInstance.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudInstanceAction getCreateCloudInstance() {
+ if (actionCase_ == 6) {
+ return (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder
+ getCreateCloudInstanceOrBuilder() {
+ if (actionCase_ == 6) {
+ return (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance();
+ }
+
+ public static final int UPDATE_CLOUD_INSTANCE_FIELD_NUMBER = 7;
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ *
+ * @return Whether the updateCloudInstance field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateCloudInstance() {
+ return actionCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ *
+ * @return The updateCloudInstance.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudInstanceAction getUpdateCloudInstance() {
+ if (actionCase_ == 7) {
+ return (com.google.spanner.executor.v1.UpdateCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder
+ getUpdateCloudInstanceOrBuilder() {
+ if (actionCase_ == 7) {
+ return (com.google.spanner.executor.v1.UpdateCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance();
+ }
+
+ public static final int DELETE_CLOUD_INSTANCE_FIELD_NUMBER = 8;
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ *
+ * @return Whether the deleteCloudInstance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeleteCloudInstance() {
+ return actionCase_ == 8;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ *
+ * @return The deleteCloudInstance.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteCloudInstanceAction getDeleteCloudInstance() {
+ if (actionCase_ == 8) {
+ return (com.google.spanner.executor.v1.DeleteCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder
+ getDeleteCloudInstanceOrBuilder() {
+ if (actionCase_ == 8) {
+ return (com.google.spanner.executor.v1.DeleteCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance();
+ }
+
+ public static final int LIST_CLOUD_INSTANCES_FIELD_NUMBER = 9;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ *
+ * @return Whether the listCloudInstances field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudInstances() {
+ return actionCase_ == 9;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ *
+ * @return The listCloudInstances.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudInstancesAction getListCloudInstances() {
+ if (actionCase_ == 9) {
+ return (com.google.spanner.executor.v1.ListCloudInstancesAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder
+ getListCloudInstancesOrBuilder() {
+ if (actionCase_ == 9) {
+ return (com.google.spanner.executor.v1.ListCloudInstancesAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance();
+ }
+
+ public static final int GET_CLOUD_INSTANCE_FIELD_NUMBER = 10;
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ *
+ * @return Whether the getCloudInstance field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetCloudInstance() {
+ return actionCase_ == 10;
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ *
+ * @return The getCloudInstance.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudInstanceAction getGetCloudInstance() {
+ if (actionCase_ == 10) {
+ return (com.google.spanner.executor.v1.GetCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder
+ getGetCloudInstanceOrBuilder() {
+ if (actionCase_ == 10) {
+ return (com.google.spanner.executor.v1.GetCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance();
+ }
+
+ public static final int CREATE_CLOUD_DATABASE_FIELD_NUMBER = 11;
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ * @return Whether the createCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateCloudDatabase() {
+ return actionCase_ == 11;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ * @return The createCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudDatabaseAction getCreateCloudDatabase() {
+ if (actionCase_ == 11) {
+ return (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder
+ getCreateCloudDatabaseOrBuilder() {
+ if (actionCase_ == 11) {
+ return (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance();
+ }
+
+ public static final int UPDATE_CLOUD_DATABASE_DDL_FIELD_NUMBER = 12;
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ *
+ * @return Whether the updateCloudDatabaseDdl field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateCloudDatabaseDdl() {
+ return actionCase_ == 12;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ *
+ * @return The updateCloudDatabaseDdl.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction getUpdateCloudDatabaseDdl() {
+ if (actionCase_ == 12) {
+ return (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder
+ getUpdateCloudDatabaseDdlOrBuilder() {
+ if (actionCase_ == 12) {
+ return (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance();
+ }
+
+ public static final int UPDATE_CLOUD_DATABASE_FIELD_NUMBER = 27;
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ * @return Whether the updateCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateCloudDatabase() {
+ return actionCase_ == 27;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ * @return The updateCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseAction getUpdateCloudDatabase() {
+ if (actionCase_ == 27) {
+ return (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder
+ getUpdateCloudDatabaseOrBuilder() {
+ if (actionCase_ == 27) {
+ return (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance();
+ }
+
+ public static final int DROP_CLOUD_DATABASE_FIELD_NUMBER = 13;
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ *
+ * @return Whether the dropCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasDropCloudDatabase() {
+ return actionCase_ == 13;
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ *
+ * @return The dropCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DropCloudDatabaseAction getDropCloudDatabase() {
+ if (actionCase_ == 13) {
+ return (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder
+ getDropCloudDatabaseOrBuilder() {
+ if (actionCase_ == 13) {
+ return (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance();
+ }
+
+ public static final int LIST_CLOUD_DATABASES_FIELD_NUMBER = 14;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ *
+ * @return Whether the listCloudDatabases field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudDatabases() {
+ return actionCase_ == 14;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ *
+ * @return The listCloudDatabases.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudDatabasesAction getListCloudDatabases() {
+ if (actionCase_ == 14) {
+ return (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder
+ getListCloudDatabasesOrBuilder() {
+ if (actionCase_ == 14) {
+ return (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance();
+ }
+
+ public static final int LIST_CLOUD_DATABASE_OPERATIONS_FIELD_NUMBER = 15;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ *
+ * @return Whether the listCloudDatabaseOperations field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudDatabaseOperations() {
+ return actionCase_ == 15;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ *
+ * @return The listCloudDatabaseOperations.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction
+ getListCloudDatabaseOperations() {
+ if (actionCase_ == 15) {
+ return (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder
+ getListCloudDatabaseOperationsOrBuilder() {
+ if (actionCase_ == 15) {
+ return (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance();
+ }
+
+ public static final int RESTORE_CLOUD_DATABASE_FIELD_NUMBER = 16;
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ *
+ * @return Whether the restoreCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasRestoreCloudDatabase() {
+ return actionCase_ == 16;
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ *
+ * @return The restoreCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.RestoreCloudDatabaseAction getRestoreCloudDatabase() {
+ if (actionCase_ == 16) {
+ return (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder
+ getRestoreCloudDatabaseOrBuilder() {
+ if (actionCase_ == 16) {
+ return (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance();
+ }
+
+ public static final int GET_CLOUD_DATABASE_FIELD_NUMBER = 17;
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ *
+ * @return Whether the getCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetCloudDatabase() {
+ return actionCase_ == 17;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ *
+ * @return The getCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudDatabaseAction getGetCloudDatabase() {
+ if (actionCase_ == 17) {
+ return (com.google.spanner.executor.v1.GetCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder
+ getGetCloudDatabaseOrBuilder() {
+ if (actionCase_ == 17) {
+ return (com.google.spanner.executor.v1.GetCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance();
+ }
+
+ public static final int CREATE_CLOUD_BACKUP_FIELD_NUMBER = 18;
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ *
+ * @return Whether the createCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateCloudBackup() {
+ return actionCase_ == 18;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ *
+ * @return The createCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudBackupAction getCreateCloudBackup() {
+ if (actionCase_ == 18) {
+ return (com.google.spanner.executor.v1.CreateCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder
+ getCreateCloudBackupOrBuilder() {
+ if (actionCase_ == 18) {
+ return (com.google.spanner.executor.v1.CreateCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance();
+ }
+
+ public static final int COPY_CLOUD_BACKUP_FIELD_NUMBER = 19;
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ *
+ * @return Whether the copyCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasCopyCloudBackup() {
+ return actionCase_ == 19;
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ *
+ * @return The copyCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CopyCloudBackupAction getCopyCloudBackup() {
+ if (actionCase_ == 19) {
+ return (com.google.spanner.executor.v1.CopyCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder
+ getCopyCloudBackupOrBuilder() {
+ if (actionCase_ == 19) {
+ return (com.google.spanner.executor.v1.CopyCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance();
+ }
+
+ public static final int GET_CLOUD_BACKUP_FIELD_NUMBER = 20;
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ *
+ * @return Whether the getCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetCloudBackup() {
+ return actionCase_ == 20;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ *
+ * @return The getCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudBackupAction getGetCloudBackup() {
+ if (actionCase_ == 20) {
+ return (com.google.spanner.executor.v1.GetCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder getGetCloudBackupOrBuilder() {
+ if (actionCase_ == 20) {
+ return (com.google.spanner.executor.v1.GetCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance();
+ }
+
+ public static final int UPDATE_CLOUD_BACKUP_FIELD_NUMBER = 21;
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ *
+ * @return Whether the updateCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateCloudBackup() {
+ return actionCase_ == 21;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ *
+ * @return The updateCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudBackupAction getUpdateCloudBackup() {
+ if (actionCase_ == 21) {
+ return (com.google.spanner.executor.v1.UpdateCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder
+ getUpdateCloudBackupOrBuilder() {
+ if (actionCase_ == 21) {
+ return (com.google.spanner.executor.v1.UpdateCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance();
+ }
+
+ public static final int DELETE_CLOUD_BACKUP_FIELD_NUMBER = 22;
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ *
+ * @return Whether the deleteCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeleteCloudBackup() {
+ return actionCase_ == 22;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ *
+ * @return The deleteCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteCloudBackupAction getDeleteCloudBackup() {
+ if (actionCase_ == 22) {
+ return (com.google.spanner.executor.v1.DeleteCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder
+ getDeleteCloudBackupOrBuilder() {
+ if (actionCase_ == 22) {
+ return (com.google.spanner.executor.v1.DeleteCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance();
+ }
+
+ public static final int LIST_CLOUD_BACKUPS_FIELD_NUMBER = 23;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ *
+ * @return Whether the listCloudBackups field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudBackups() {
+ return actionCase_ == 23;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ *
+ * @return The listCloudBackups.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudBackupsAction getListCloudBackups() {
+ if (actionCase_ == 23) {
+ return (com.google.spanner.executor.v1.ListCloudBackupsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder
+ getListCloudBackupsOrBuilder() {
+ if (actionCase_ == 23) {
+ return (com.google.spanner.executor.v1.ListCloudBackupsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance();
+ }
+
+ public static final int LIST_CLOUD_BACKUP_OPERATIONS_FIELD_NUMBER = 24;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ *
+ * @return Whether the listCloudBackupOperations field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudBackupOperations() {
+ return actionCase_ == 24;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ *
+ * @return The listCloudBackupOperations.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudBackupOperationsAction
+ getListCloudBackupOperations() {
+ if (actionCase_ == 24) {
+ return (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder
+ getListCloudBackupOperationsOrBuilder() {
+ if (actionCase_ == 24) {
+ return (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance();
+ }
+
+ public static final int GET_OPERATION_FIELD_NUMBER = 25;
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ *
+ * @return Whether the getOperation field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetOperation() {
+ return actionCase_ == 25;
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ *
+ * @return The getOperation.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetOperationAction getGetOperation() {
+ if (actionCase_ == 25) {
+ return (com.google.spanner.executor.v1.GetOperationAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetOperationActionOrBuilder getGetOperationOrBuilder() {
+ if (actionCase_ == 25) {
+ return (com.google.spanner.executor.v1.GetOperationAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance();
+ }
+
+ public static final int CANCEL_OPERATION_FIELD_NUMBER = 26;
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ *
+ * @return Whether the cancelOperation field is set.
+ */
+ @java.lang.Override
+ public boolean hasCancelOperation() {
+ return actionCase_ == 26;
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ *
+ * @return The cancelOperation.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CancelOperationAction getCancelOperation() {
+ if (actionCase_ == 26) {
+ return (com.google.spanner.executor.v1.CancelOperationAction) action_;
+ }
+ return com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CancelOperationActionOrBuilder
+ getCancelOperationOrBuilder() {
+ if (actionCase_ == 26) {
+ return (com.google.spanner.executor.v1.CancelOperationAction) action_;
+ }
+ return com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance();
+ }
+
+ public static final int RECONFIGURE_CLOUD_DATABASE_FIELD_NUMBER = 28;
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ *
+ * @return Whether the reconfigureCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasReconfigureCloudDatabase() {
+ return actionCase_ == 28;
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ *
+ * @return The reconfigureCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction
+ getReconfigureCloudDatabase() {
+ if (actionCase_ == 28) {
+ return (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder
+ getReconfigureCloudDatabaseOrBuilder() {
+ if (actionCase_ == 28) {
+ return (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance();
+ }
+
+ 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 (actionCase_ == 1) {
+ output.writeMessage(
+ 1, (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_);
+ }
+ if (actionCase_ == 2) {
+ output.writeMessage(
+ 2, (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_);
+ }
+ if (actionCase_ == 3) {
+ output.writeMessage(
+ 3, (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_);
+ }
+ if (actionCase_ == 4) {
+ output.writeMessage(4, (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) action_);
+ }
+ if (actionCase_ == 5) {
+ output.writeMessage(
+ 5, (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_);
+ }
+ if (actionCase_ == 6) {
+ output.writeMessage(6, (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_);
+ }
+ if (actionCase_ == 7) {
+ output.writeMessage(7, (com.google.spanner.executor.v1.UpdateCloudInstanceAction) action_);
+ }
+ if (actionCase_ == 8) {
+ output.writeMessage(8, (com.google.spanner.executor.v1.DeleteCloudInstanceAction) action_);
+ }
+ if (actionCase_ == 9) {
+ output.writeMessage(9, (com.google.spanner.executor.v1.ListCloudInstancesAction) action_);
+ }
+ if (actionCase_ == 10) {
+ output.writeMessage(10, (com.google.spanner.executor.v1.GetCloudInstanceAction) action_);
+ }
+ if (actionCase_ == 11) {
+ output.writeMessage(11, (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 12) {
+ output.writeMessage(
+ 12, (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_);
+ }
+ if (actionCase_ == 13) {
+ output.writeMessage(13, (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 14) {
+ output.writeMessage(14, (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_);
+ }
+ if (actionCase_ == 15) {
+ output.writeMessage(
+ 15, (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_);
+ }
+ if (actionCase_ == 16) {
+ output.writeMessage(16, (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 17) {
+ output.writeMessage(17, (com.google.spanner.executor.v1.GetCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 18) {
+ output.writeMessage(18, (com.google.spanner.executor.v1.CreateCloudBackupAction) action_);
+ }
+ if (actionCase_ == 19) {
+ output.writeMessage(19, (com.google.spanner.executor.v1.CopyCloudBackupAction) action_);
+ }
+ if (actionCase_ == 20) {
+ output.writeMessage(20, (com.google.spanner.executor.v1.GetCloudBackupAction) action_);
+ }
+ if (actionCase_ == 21) {
+ output.writeMessage(21, (com.google.spanner.executor.v1.UpdateCloudBackupAction) action_);
+ }
+ if (actionCase_ == 22) {
+ output.writeMessage(22, (com.google.spanner.executor.v1.DeleteCloudBackupAction) action_);
+ }
+ if (actionCase_ == 23) {
+ output.writeMessage(23, (com.google.spanner.executor.v1.ListCloudBackupsAction) action_);
+ }
+ if (actionCase_ == 24) {
+ output.writeMessage(
+ 24, (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_);
+ }
+ if (actionCase_ == 25) {
+ output.writeMessage(25, (com.google.spanner.executor.v1.GetOperationAction) action_);
+ }
+ if (actionCase_ == 26) {
+ output.writeMessage(26, (com.google.spanner.executor.v1.CancelOperationAction) action_);
+ }
+ if (actionCase_ == 27) {
+ output.writeMessage(27, (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 28) {
+ output.writeMessage(
+ 28, (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (actionCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_);
+ }
+ if (actionCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_);
+ }
+ if (actionCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_);
+ }
+ if (actionCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 4, (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) action_);
+ }
+ if (actionCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 5, (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_);
+ }
+ if (actionCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 6, (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_);
+ }
+ if (actionCase_ == 7) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 7, (com.google.spanner.executor.v1.UpdateCloudInstanceAction) action_);
+ }
+ if (actionCase_ == 8) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 8, (com.google.spanner.executor.v1.DeleteCloudInstanceAction) action_);
+ }
+ if (actionCase_ == 9) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 9, (com.google.spanner.executor.v1.ListCloudInstancesAction) action_);
+ }
+ if (actionCase_ == 10) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 10, (com.google.spanner.executor.v1.GetCloudInstanceAction) action_);
+ }
+ if (actionCase_ == 11) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 11, (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 12) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 12, (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_);
+ }
+ if (actionCase_ == 13) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 13, (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 14) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 14, (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_);
+ }
+ if (actionCase_ == 15) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 15, (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_);
+ }
+ if (actionCase_ == 16) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 16, (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 17) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 17, (com.google.spanner.executor.v1.GetCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 18) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 18, (com.google.spanner.executor.v1.CreateCloudBackupAction) action_);
+ }
+ if (actionCase_ == 19) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 19, (com.google.spanner.executor.v1.CopyCloudBackupAction) action_);
+ }
+ if (actionCase_ == 20) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 20, (com.google.spanner.executor.v1.GetCloudBackupAction) action_);
+ }
+ if (actionCase_ == 21) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 21, (com.google.spanner.executor.v1.UpdateCloudBackupAction) action_);
+ }
+ if (actionCase_ == 22) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 22, (com.google.spanner.executor.v1.DeleteCloudBackupAction) action_);
+ }
+ if (actionCase_ == 23) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 23, (com.google.spanner.executor.v1.ListCloudBackupsAction) action_);
+ }
+ if (actionCase_ == 24) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 24, (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_);
+ }
+ if (actionCase_ == 25) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 25, (com.google.spanner.executor.v1.GetOperationAction) action_);
+ }
+ if (actionCase_ == 26) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 26, (com.google.spanner.executor.v1.CancelOperationAction) action_);
+ }
+ if (actionCase_ == 27) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 27, (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_);
+ }
+ if (actionCase_ == 28) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 28, (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.AdminAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.AdminAction other =
+ (com.google.spanner.executor.v1.AdminAction) obj;
+
+ if (!getActionCase().equals(other.getActionCase())) return false;
+ switch (actionCase_) {
+ case 1:
+ if (!getCreateUserInstanceConfig().equals(other.getCreateUserInstanceConfig()))
+ return false;
+ break;
+ case 2:
+ if (!getUpdateUserInstanceConfig().equals(other.getUpdateUserInstanceConfig()))
+ return false;
+ break;
+ case 3:
+ if (!getDeleteUserInstanceConfig().equals(other.getDeleteUserInstanceConfig()))
+ return false;
+ break;
+ case 4:
+ if (!getGetCloudInstanceConfig().equals(other.getGetCloudInstanceConfig())) return false;
+ break;
+ case 5:
+ if (!getListInstanceConfigs().equals(other.getListInstanceConfigs())) return false;
+ break;
+ case 6:
+ if (!getCreateCloudInstance().equals(other.getCreateCloudInstance())) return false;
+ break;
+ case 7:
+ if (!getUpdateCloudInstance().equals(other.getUpdateCloudInstance())) return false;
+ break;
+ case 8:
+ if (!getDeleteCloudInstance().equals(other.getDeleteCloudInstance())) return false;
+ break;
+ case 9:
+ if (!getListCloudInstances().equals(other.getListCloudInstances())) return false;
+ break;
+ case 10:
+ if (!getGetCloudInstance().equals(other.getGetCloudInstance())) return false;
+ break;
+ case 11:
+ if (!getCreateCloudDatabase().equals(other.getCreateCloudDatabase())) return false;
+ break;
+ case 12:
+ if (!getUpdateCloudDatabaseDdl().equals(other.getUpdateCloudDatabaseDdl())) return false;
+ break;
+ case 27:
+ if (!getUpdateCloudDatabase().equals(other.getUpdateCloudDatabase())) return false;
+ break;
+ case 13:
+ if (!getDropCloudDatabase().equals(other.getDropCloudDatabase())) return false;
+ break;
+ case 14:
+ if (!getListCloudDatabases().equals(other.getListCloudDatabases())) return false;
+ break;
+ case 15:
+ if (!getListCloudDatabaseOperations().equals(other.getListCloudDatabaseOperations()))
+ return false;
+ break;
+ case 16:
+ if (!getRestoreCloudDatabase().equals(other.getRestoreCloudDatabase())) return false;
+ break;
+ case 17:
+ if (!getGetCloudDatabase().equals(other.getGetCloudDatabase())) return false;
+ break;
+ case 18:
+ if (!getCreateCloudBackup().equals(other.getCreateCloudBackup())) return false;
+ break;
+ case 19:
+ if (!getCopyCloudBackup().equals(other.getCopyCloudBackup())) return false;
+ break;
+ case 20:
+ if (!getGetCloudBackup().equals(other.getGetCloudBackup())) return false;
+ break;
+ case 21:
+ if (!getUpdateCloudBackup().equals(other.getUpdateCloudBackup())) return false;
+ break;
+ case 22:
+ if (!getDeleteCloudBackup().equals(other.getDeleteCloudBackup())) return false;
+ break;
+ case 23:
+ if (!getListCloudBackups().equals(other.getListCloudBackups())) return false;
+ break;
+ case 24:
+ if (!getListCloudBackupOperations().equals(other.getListCloudBackupOperations()))
+ return false;
+ break;
+ case 25:
+ if (!getGetOperation().equals(other.getGetOperation())) return false;
+ break;
+ case 26:
+ if (!getCancelOperation().equals(other.getCancelOperation())) return false;
+ break;
+ case 28:
+ if (!getReconfigureCloudDatabase().equals(other.getReconfigureCloudDatabase()))
+ return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (actionCase_) {
+ case 1:
+ hash = (37 * hash) + CREATE_USER_INSTANCE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateUserInstanceConfig().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + UPDATE_USER_INSTANCE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateUserInstanceConfig().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + DELETE_USER_INSTANCE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getDeleteUserInstanceConfig().hashCode();
+ break;
+ case 4:
+ hash = (37 * hash) + GET_CLOUD_INSTANCE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getGetCloudInstanceConfig().hashCode();
+ break;
+ case 5:
+ hash = (37 * hash) + LIST_INSTANCE_CONFIGS_FIELD_NUMBER;
+ hash = (53 * hash) + getListInstanceConfigs().hashCode();
+ break;
+ case 6:
+ hash = (37 * hash) + CREATE_CLOUD_INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateCloudInstance().hashCode();
+ break;
+ case 7:
+ hash = (37 * hash) + UPDATE_CLOUD_INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateCloudInstance().hashCode();
+ break;
+ case 8:
+ hash = (37 * hash) + DELETE_CLOUD_INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getDeleteCloudInstance().hashCode();
+ break;
+ case 9:
+ hash = (37 * hash) + LIST_CLOUD_INSTANCES_FIELD_NUMBER;
+ hash = (53 * hash) + getListCloudInstances().hashCode();
+ break;
+ case 10:
+ hash = (37 * hash) + GET_CLOUD_INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getGetCloudInstance().hashCode();
+ break;
+ case 11:
+ hash = (37 * hash) + CREATE_CLOUD_DATABASE_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateCloudDatabase().hashCode();
+ break;
+ case 12:
+ hash = (37 * hash) + UPDATE_CLOUD_DATABASE_DDL_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateCloudDatabaseDdl().hashCode();
+ break;
+ case 27:
+ hash = (37 * hash) + UPDATE_CLOUD_DATABASE_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateCloudDatabase().hashCode();
+ break;
+ case 13:
+ hash = (37 * hash) + DROP_CLOUD_DATABASE_FIELD_NUMBER;
+ hash = (53 * hash) + getDropCloudDatabase().hashCode();
+ break;
+ case 14:
+ hash = (37 * hash) + LIST_CLOUD_DATABASES_FIELD_NUMBER;
+ hash = (53 * hash) + getListCloudDatabases().hashCode();
+ break;
+ case 15:
+ hash = (37 * hash) + LIST_CLOUD_DATABASE_OPERATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getListCloudDatabaseOperations().hashCode();
+ break;
+ case 16:
+ hash = (37 * hash) + RESTORE_CLOUD_DATABASE_FIELD_NUMBER;
+ hash = (53 * hash) + getRestoreCloudDatabase().hashCode();
+ break;
+ case 17:
+ hash = (37 * hash) + GET_CLOUD_DATABASE_FIELD_NUMBER;
+ hash = (53 * hash) + getGetCloudDatabase().hashCode();
+ break;
+ case 18:
+ hash = (37 * hash) + CREATE_CLOUD_BACKUP_FIELD_NUMBER;
+ hash = (53 * hash) + getCreateCloudBackup().hashCode();
+ break;
+ case 19:
+ hash = (37 * hash) + COPY_CLOUD_BACKUP_FIELD_NUMBER;
+ hash = (53 * hash) + getCopyCloudBackup().hashCode();
+ break;
+ case 20:
+ hash = (37 * hash) + GET_CLOUD_BACKUP_FIELD_NUMBER;
+ hash = (53 * hash) + getGetCloudBackup().hashCode();
+ break;
+ case 21:
+ hash = (37 * hash) + UPDATE_CLOUD_BACKUP_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdateCloudBackup().hashCode();
+ break;
+ case 22:
+ hash = (37 * hash) + DELETE_CLOUD_BACKUP_FIELD_NUMBER;
+ hash = (53 * hash) + getDeleteCloudBackup().hashCode();
+ break;
+ case 23:
+ hash = (37 * hash) + LIST_CLOUD_BACKUPS_FIELD_NUMBER;
+ hash = (53 * hash) + getListCloudBackups().hashCode();
+ break;
+ case 24:
+ hash = (37 * hash) + LIST_CLOUD_BACKUP_OPERATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getListCloudBackupOperations().hashCode();
+ break;
+ case 25:
+ hash = (37 * hash) + GET_OPERATION_FIELD_NUMBER;
+ hash = (53 * hash) + getGetOperation().hashCode();
+ break;
+ case 26:
+ hash = (37 * hash) + CANCEL_OPERATION_FIELD_NUMBER;
+ hash = (53 * hash) + getCancelOperation().hashCode();
+ break;
+ case 28:
+ hash = (37 * hash) + RECONFIGURE_CLOUD_DATABASE_FIELD_NUMBER;
+ hash = (53 * hash) + getReconfigureCloudDatabase().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction 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.spanner.executor.v1.AdminAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction 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.spanner.executor.v1.AdminAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction 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.spanner.executor.v1.AdminAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction 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.spanner.executor.v1.AdminAction 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;
+ }
+ /**
+ *
+ *
+ * + * AdminAction defines all the cloud spanner admin actions, including + * instance/database admin ops, backup ops and operation actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.AdminAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ *
+ * @return Whether the createUserInstanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateUserInstanceConfig() {
+ return actionCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ *
+ * @return The createUserInstanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateUserInstanceConfigAction
+ getCreateUserInstanceConfig() {
+ if (createUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 1) {
+ return (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 1) {
+ return createUserInstanceConfigBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ public Builder setCreateUserInstanceConfig(
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction value) {
+ if (createUserInstanceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ createUserInstanceConfigBuilder_.setMessage(value);
+ }
+ actionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ public Builder setCreateUserInstanceConfig(
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder builderForValue) {
+ if (createUserInstanceConfigBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ createUserInstanceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ public Builder mergeCreateUserInstanceConfig(
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction value) {
+ if (createUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 1
+ && action_
+ != com.google.spanner.executor.v1.CreateUserInstanceConfigAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction.newBuilder(
+ (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 1) {
+ createUserInstanceConfigBuilder_.mergeFrom(value);
+ } else {
+ createUserInstanceConfigBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ public Builder clearCreateUserInstanceConfig() {
+ if (createUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 1) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 1) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ createUserInstanceConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ public com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder
+ getCreateUserInstanceConfigBuilder() {
+ return getCreateUserInstanceConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder
+ getCreateUserInstanceConfigOrBuilder() {
+ if ((actionCase_ == 1) && (createUserInstanceConfigBuilder_ != null)) {
+ return createUserInstanceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 1) {
+ return (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction,
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder>
+ getCreateUserInstanceConfigFieldBuilder() {
+ if (createUserInstanceConfigBuilder_ == null) {
+ if (!(actionCase_ == 1)) {
+ action_ =
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction.getDefaultInstance();
+ }
+ createUserInstanceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction,
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder>(
+ (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 1;
+ onChanged();
+ return createUserInstanceConfigBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction,
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder>
+ updateUserInstanceConfigBuilder_;
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ *
+ * @return Whether the updateUserInstanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateUserInstanceConfig() {
+ return actionCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ *
+ * @return The updateUserInstanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateUserInstanceConfigAction
+ getUpdateUserInstanceConfig() {
+ if (updateUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 2) {
+ return (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 2) {
+ return updateUserInstanceConfigBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ public Builder setUpdateUserInstanceConfig(
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction value) {
+ if (updateUserInstanceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ updateUserInstanceConfigBuilder_.setMessage(value);
+ }
+ actionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ public Builder setUpdateUserInstanceConfig(
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder builderForValue) {
+ if (updateUserInstanceConfigBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateUserInstanceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ public Builder mergeUpdateUserInstanceConfig(
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction value) {
+ if (updateUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 2
+ && action_
+ != com.google.spanner.executor.v1.UpdateUserInstanceConfigAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.newBuilder(
+ (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 2) {
+ updateUserInstanceConfigBuilder_.mergeFrom(value);
+ } else {
+ updateUserInstanceConfigBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ public Builder clearUpdateUserInstanceConfig() {
+ if (updateUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 2) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 2) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ updateUserInstanceConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ public com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder
+ getUpdateUserInstanceConfigBuilder() {
+ return getUpdateUserInstanceConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder
+ getUpdateUserInstanceConfigOrBuilder() {
+ if ((actionCase_ == 2) && (updateUserInstanceConfigBuilder_ != null)) {
+ return updateUserInstanceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 2) {
+ return (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction,
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder>
+ getUpdateUserInstanceConfigFieldBuilder() {
+ if (updateUserInstanceConfigBuilder_ == null) {
+ if (!(actionCase_ == 2)) {
+ action_ =
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.getDefaultInstance();
+ }
+ updateUserInstanceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction,
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder>(
+ (com.google.spanner.executor.v1.UpdateUserInstanceConfigAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 2;
+ onChanged();
+ return updateUserInstanceConfigBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction,
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder>
+ deleteUserInstanceConfigBuilder_;
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ *
+ * @return Whether the deleteUserInstanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeleteUserInstanceConfig() {
+ return actionCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ *
+ * @return The deleteUserInstanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction
+ getDeleteUserInstanceConfig() {
+ if (deleteUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 3) {
+ return (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 3) {
+ return deleteUserInstanceConfigBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ public Builder setDeleteUserInstanceConfig(
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction value) {
+ if (deleteUserInstanceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ deleteUserInstanceConfigBuilder_.setMessage(value);
+ }
+ actionCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ public Builder setDeleteUserInstanceConfig(
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder builderForValue) {
+ if (deleteUserInstanceConfigBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ deleteUserInstanceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ public Builder mergeDeleteUserInstanceConfig(
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction value) {
+ if (deleteUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 3
+ && action_
+ != com.google.spanner.executor.v1.DeleteUserInstanceConfigAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.newBuilder(
+ (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 3) {
+ deleteUserInstanceConfigBuilder_.mergeFrom(value);
+ } else {
+ deleteUserInstanceConfigBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ public Builder clearDeleteUserInstanceConfig() {
+ if (deleteUserInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 3) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 3) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ deleteUserInstanceConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ public com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder
+ getDeleteUserInstanceConfigBuilder() {
+ return getDeleteUserInstanceConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder
+ getDeleteUserInstanceConfigOrBuilder() {
+ if ((actionCase_ == 3) && (deleteUserInstanceConfigBuilder_ != null)) {
+ return deleteUserInstanceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 3) {
+ return (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction,
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder>
+ getDeleteUserInstanceConfigFieldBuilder() {
+ if (deleteUserInstanceConfigBuilder_ == null) {
+ if (!(actionCase_ == 3)) {
+ action_ =
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.getDefaultInstance();
+ }
+ deleteUserInstanceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction,
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder>(
+ (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 3;
+ onChanged();
+ return deleteUserInstanceConfigBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction,
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder>
+ getCloudInstanceConfigBuilder_;
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ *
+ * @return Whether the getCloudInstanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetCloudInstanceConfig() {
+ return actionCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ *
+ * @return The getCloudInstanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudInstanceConfigAction getGetCloudInstanceConfig() {
+ if (getCloudInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 4) {
+ return (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 4) {
+ return getCloudInstanceConfigBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ public Builder setGetCloudInstanceConfig(
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction value) {
+ if (getCloudInstanceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ getCloudInstanceConfigBuilder_.setMessage(value);
+ }
+ actionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ public Builder setGetCloudInstanceConfig(
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder builderForValue) {
+ if (getCloudInstanceConfigBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ getCloudInstanceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ public Builder mergeGetCloudInstanceConfig(
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction value) {
+ if (getCloudInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 4
+ && action_
+ != com.google.spanner.executor.v1.GetCloudInstanceConfigAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction.newBuilder(
+ (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 4) {
+ getCloudInstanceConfigBuilder_.mergeFrom(value);
+ } else {
+ getCloudInstanceConfigBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 4;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ public Builder clearGetCloudInstanceConfig() {
+ if (getCloudInstanceConfigBuilder_ == null) {
+ if (actionCase_ == 4) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 4) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ getCloudInstanceConfigBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ public com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder
+ getGetCloudInstanceConfigBuilder() {
+ return getGetCloudInstanceConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder
+ getGetCloudInstanceConfigOrBuilder() {
+ if ((actionCase_ == 4) && (getCloudInstanceConfigBuilder_ != null)) {
+ return getCloudInstanceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 4) {
+ return (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction,
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder>
+ getGetCloudInstanceConfigFieldBuilder() {
+ if (getCloudInstanceConfigBuilder_ == null) {
+ if (!(actionCase_ == 4)) {
+ action_ =
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction.getDefaultInstance();
+ }
+ getCloudInstanceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction,
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction.Builder,
+ com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder>(
+ (com.google.spanner.executor.v1.GetCloudInstanceConfigAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 4;
+ onChanged();
+ return getCloudInstanceConfigBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction,
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder>
+ listInstanceConfigsBuilder_;
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ *
+ * @return Whether the listInstanceConfigs field is set.
+ */
+ @java.lang.Override
+ public boolean hasListInstanceConfigs() {
+ return actionCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ *
+ * @return The listInstanceConfigs.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction getListInstanceConfigs() {
+ if (listInstanceConfigsBuilder_ == null) {
+ if (actionCase_ == 5) {
+ return (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 5) {
+ return listInstanceConfigsBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ public Builder setListInstanceConfigs(
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction value) {
+ if (listInstanceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ listInstanceConfigsBuilder_.setMessage(value);
+ }
+ actionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ public Builder setListInstanceConfigs(
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder builderForValue) {
+ if (listInstanceConfigsBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ listInstanceConfigsBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ public Builder mergeListInstanceConfigs(
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction value) {
+ if (listInstanceConfigsBuilder_ == null) {
+ if (actionCase_ == 5
+ && action_
+ != com.google.spanner.executor.v1.ListCloudInstanceConfigsAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.newBuilder(
+ (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 5) {
+ listInstanceConfigsBuilder_.mergeFrom(value);
+ } else {
+ listInstanceConfigsBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 5;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ public Builder clearListInstanceConfigs() {
+ if (listInstanceConfigsBuilder_ == null) {
+ if (actionCase_ == 5) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 5) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ listInstanceConfigsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ public com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder
+ getListInstanceConfigsBuilder() {
+ return getListInstanceConfigsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder
+ getListInstanceConfigsOrBuilder() {
+ if ((actionCase_ == 5) && (listInstanceConfigsBuilder_ != null)) {
+ return listInstanceConfigsBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 5) {
+ return (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction,
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder>
+ getListInstanceConfigsFieldBuilder() {
+ if (listInstanceConfigsBuilder_ == null) {
+ if (!(actionCase_ == 5)) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.getDefaultInstance();
+ }
+ listInstanceConfigsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction,
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder>(
+ (com.google.spanner.executor.v1.ListCloudInstanceConfigsAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 5;
+ onChanged();
+ return listInstanceConfigsBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudInstanceAction,
+ com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder>
+ createCloudInstanceBuilder_;
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ *
+ * @return Whether the createCloudInstance field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateCloudInstance() {
+ return actionCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ *
+ * @return The createCloudInstance.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudInstanceAction getCreateCloudInstance() {
+ if (createCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 6) {
+ return (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 6) {
+ return createCloudInstanceBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ public Builder setCreateCloudInstance(
+ com.google.spanner.executor.v1.CreateCloudInstanceAction value) {
+ if (createCloudInstanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ createCloudInstanceBuilder_.setMessage(value);
+ }
+ actionCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ public Builder setCreateCloudInstance(
+ com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder builderForValue) {
+ if (createCloudInstanceBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ createCloudInstanceBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ public Builder mergeCreateCloudInstance(
+ com.google.spanner.executor.v1.CreateCloudInstanceAction value) {
+ if (createCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 6
+ && action_
+ != com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.CreateCloudInstanceAction.newBuilder(
+ (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 6) {
+ createCloudInstanceBuilder_.mergeFrom(value);
+ } else {
+ createCloudInstanceBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 6;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ public Builder clearCreateCloudInstance() {
+ if (createCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 6) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 6) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ createCloudInstanceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ public com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder
+ getCreateCloudInstanceBuilder() {
+ return getCreateCloudInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder
+ getCreateCloudInstanceOrBuilder() {
+ if ((actionCase_ == 6) && (createCloudInstanceBuilder_ != null)) {
+ return createCloudInstanceBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 6) {
+ return (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudInstanceAction,
+ com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder>
+ getCreateCloudInstanceFieldBuilder() {
+ if (createCloudInstanceBuilder_ == null) {
+ if (!(actionCase_ == 6)) {
+ action_ = com.google.spanner.executor.v1.CreateCloudInstanceAction.getDefaultInstance();
+ }
+ createCloudInstanceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudInstanceAction,
+ com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder>(
+ (com.google.spanner.executor.v1.CreateCloudInstanceAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 6;
+ onChanged();
+ return createCloudInstanceBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction,
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder>
+ updateCloudInstanceBuilder_;
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ *
+ * @return Whether the updateCloudInstance field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateCloudInstance() {
+ return actionCase_ == 7;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ *
+ * @return The updateCloudInstance.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudInstanceAction getUpdateCloudInstance() {
+ if (updateCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 7) {
+ return (com.google.spanner.executor.v1.UpdateCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 7) {
+ return updateCloudInstanceBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ public Builder setUpdateCloudInstance(
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction value) {
+ if (updateCloudInstanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ updateCloudInstanceBuilder_.setMessage(value);
+ }
+ actionCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ public Builder setUpdateCloudInstance(
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder builderForValue) {
+ if (updateCloudInstanceBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateCloudInstanceBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ public Builder mergeUpdateCloudInstance(
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction value) {
+ if (updateCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 7
+ && action_
+ != com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction.newBuilder(
+ (com.google.spanner.executor.v1.UpdateCloudInstanceAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 7) {
+ updateCloudInstanceBuilder_.mergeFrom(value);
+ } else {
+ updateCloudInstanceBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 7;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ public Builder clearUpdateCloudInstance() {
+ if (updateCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 7) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 7) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ updateCloudInstanceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ public com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder
+ getUpdateCloudInstanceBuilder() {
+ return getUpdateCloudInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder
+ getUpdateCloudInstanceOrBuilder() {
+ if ((actionCase_ == 7) && (updateCloudInstanceBuilder_ != null)) {
+ return updateCloudInstanceBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 7) {
+ return (com.google.spanner.executor.v1.UpdateCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction,
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder>
+ getUpdateCloudInstanceFieldBuilder() {
+ if (updateCloudInstanceBuilder_ == null) {
+ if (!(actionCase_ == 7)) {
+ action_ = com.google.spanner.executor.v1.UpdateCloudInstanceAction.getDefaultInstance();
+ }
+ updateCloudInstanceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction,
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder>(
+ (com.google.spanner.executor.v1.UpdateCloudInstanceAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 7;
+ onChanged();
+ return updateCloudInstanceBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction,
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder>
+ deleteCloudInstanceBuilder_;
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ *
+ * @return Whether the deleteCloudInstance field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeleteCloudInstance() {
+ return actionCase_ == 8;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ *
+ * @return The deleteCloudInstance.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteCloudInstanceAction getDeleteCloudInstance() {
+ if (deleteCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 8) {
+ return (com.google.spanner.executor.v1.DeleteCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 8) {
+ return deleteCloudInstanceBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ public Builder setDeleteCloudInstance(
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction value) {
+ if (deleteCloudInstanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ deleteCloudInstanceBuilder_.setMessage(value);
+ }
+ actionCase_ = 8;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ public Builder setDeleteCloudInstance(
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder builderForValue) {
+ if (deleteCloudInstanceBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ deleteCloudInstanceBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 8;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ public Builder mergeDeleteCloudInstance(
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction value) {
+ if (deleteCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 8
+ && action_
+ != com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction.newBuilder(
+ (com.google.spanner.executor.v1.DeleteCloudInstanceAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 8) {
+ deleteCloudInstanceBuilder_.mergeFrom(value);
+ } else {
+ deleteCloudInstanceBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 8;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ public Builder clearDeleteCloudInstance() {
+ if (deleteCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 8) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 8) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ deleteCloudInstanceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ public com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder
+ getDeleteCloudInstanceBuilder() {
+ return getDeleteCloudInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder
+ getDeleteCloudInstanceOrBuilder() {
+ if ((actionCase_ == 8) && (deleteCloudInstanceBuilder_ != null)) {
+ return deleteCloudInstanceBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 8) {
+ return (com.google.spanner.executor.v1.DeleteCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction,
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder>
+ getDeleteCloudInstanceFieldBuilder() {
+ if (deleteCloudInstanceBuilder_ == null) {
+ if (!(actionCase_ == 8)) {
+ action_ = com.google.spanner.executor.v1.DeleteCloudInstanceAction.getDefaultInstance();
+ }
+ deleteCloudInstanceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction,
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder>(
+ (com.google.spanner.executor.v1.DeleteCloudInstanceAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 8;
+ onChanged();
+ return deleteCloudInstanceBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudInstancesAction,
+ com.google.spanner.executor.v1.ListCloudInstancesAction.Builder,
+ com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder>
+ listCloudInstancesBuilder_;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ *
+ * @return Whether the listCloudInstances field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudInstances() {
+ return actionCase_ == 9;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ *
+ * @return The listCloudInstances.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudInstancesAction getListCloudInstances() {
+ if (listCloudInstancesBuilder_ == null) {
+ if (actionCase_ == 9) {
+ return (com.google.spanner.executor.v1.ListCloudInstancesAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 9) {
+ return listCloudInstancesBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ public Builder setListCloudInstances(
+ com.google.spanner.executor.v1.ListCloudInstancesAction value) {
+ if (listCloudInstancesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ listCloudInstancesBuilder_.setMessage(value);
+ }
+ actionCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ public Builder setListCloudInstances(
+ com.google.spanner.executor.v1.ListCloudInstancesAction.Builder builderForValue) {
+ if (listCloudInstancesBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ listCloudInstancesBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ public Builder mergeListCloudInstances(
+ com.google.spanner.executor.v1.ListCloudInstancesAction value) {
+ if (listCloudInstancesBuilder_ == null) {
+ if (actionCase_ == 9
+ && action_
+ != com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudInstancesAction.newBuilder(
+ (com.google.spanner.executor.v1.ListCloudInstancesAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 9) {
+ listCloudInstancesBuilder_.mergeFrom(value);
+ } else {
+ listCloudInstancesBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 9;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ public Builder clearListCloudInstances() {
+ if (listCloudInstancesBuilder_ == null) {
+ if (actionCase_ == 9) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 9) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ listCloudInstancesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ public com.google.spanner.executor.v1.ListCloudInstancesAction.Builder
+ getListCloudInstancesBuilder() {
+ return getListCloudInstancesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder
+ getListCloudInstancesOrBuilder() {
+ if ((actionCase_ == 9) && (listCloudInstancesBuilder_ != null)) {
+ return listCloudInstancesBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 9) {
+ return (com.google.spanner.executor.v1.ListCloudInstancesAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudInstancesAction,
+ com.google.spanner.executor.v1.ListCloudInstancesAction.Builder,
+ com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder>
+ getListCloudInstancesFieldBuilder() {
+ if (listCloudInstancesBuilder_ == null) {
+ if (!(actionCase_ == 9)) {
+ action_ = com.google.spanner.executor.v1.ListCloudInstancesAction.getDefaultInstance();
+ }
+ listCloudInstancesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudInstancesAction,
+ com.google.spanner.executor.v1.ListCloudInstancesAction.Builder,
+ com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder>(
+ (com.google.spanner.executor.v1.ListCloudInstancesAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 9;
+ onChanged();
+ return listCloudInstancesBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudInstanceAction,
+ com.google.spanner.executor.v1.GetCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder>
+ getCloudInstanceBuilder_;
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ *
+ * @return Whether the getCloudInstance field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetCloudInstance() {
+ return actionCase_ == 10;
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ *
+ * @return The getCloudInstance.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudInstanceAction getGetCloudInstance() {
+ if (getCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 10) {
+ return (com.google.spanner.executor.v1.GetCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 10) {
+ return getCloudInstanceBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ public Builder setGetCloudInstance(
+ com.google.spanner.executor.v1.GetCloudInstanceAction value) {
+ if (getCloudInstanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ getCloudInstanceBuilder_.setMessage(value);
+ }
+ actionCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ public Builder setGetCloudInstance(
+ com.google.spanner.executor.v1.GetCloudInstanceAction.Builder builderForValue) {
+ if (getCloudInstanceBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ getCloudInstanceBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ public Builder mergeGetCloudInstance(
+ com.google.spanner.executor.v1.GetCloudInstanceAction value) {
+ if (getCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 10
+ && action_
+ != com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.GetCloudInstanceAction.newBuilder(
+ (com.google.spanner.executor.v1.GetCloudInstanceAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 10) {
+ getCloudInstanceBuilder_.mergeFrom(value);
+ } else {
+ getCloudInstanceBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 10;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ public Builder clearGetCloudInstance() {
+ if (getCloudInstanceBuilder_ == null) {
+ if (actionCase_ == 10) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 10) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ getCloudInstanceBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ public com.google.spanner.executor.v1.GetCloudInstanceAction.Builder
+ getGetCloudInstanceBuilder() {
+ return getGetCloudInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder
+ getGetCloudInstanceOrBuilder() {
+ if ((actionCase_ == 10) && (getCloudInstanceBuilder_ != null)) {
+ return getCloudInstanceBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 10) {
+ return (com.google.spanner.executor.v1.GetCloudInstanceAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudInstanceAction,
+ com.google.spanner.executor.v1.GetCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder>
+ getGetCloudInstanceFieldBuilder() {
+ if (getCloudInstanceBuilder_ == null) {
+ if (!(actionCase_ == 10)) {
+ action_ = com.google.spanner.executor.v1.GetCloudInstanceAction.getDefaultInstance();
+ }
+ getCloudInstanceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudInstanceAction,
+ com.google.spanner.executor.v1.GetCloudInstanceAction.Builder,
+ com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder>(
+ (com.google.spanner.executor.v1.GetCloudInstanceAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 10;
+ onChanged();
+ return getCloudInstanceBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction,
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder>
+ createCloudDatabaseBuilder_;
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ *
+ * @return Whether the createCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateCloudDatabase() {
+ return actionCase_ == 11;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ *
+ * @return The createCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudDatabaseAction getCreateCloudDatabase() {
+ if (createCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 11) {
+ return (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 11) {
+ return createCloudDatabaseBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ */
+ public Builder setCreateCloudDatabase(
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction value) {
+ if (createCloudDatabaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ createCloudDatabaseBuilder_.setMessage(value);
+ }
+ actionCase_ = 11;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ */
+ public Builder setCreateCloudDatabase(
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder builderForValue) {
+ if (createCloudDatabaseBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ createCloudDatabaseBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 11;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ */
+ public Builder mergeCreateCloudDatabase(
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction value) {
+ if (createCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 11
+ && action_
+ != com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction.newBuilder(
+ (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 11) {
+ createCloudDatabaseBuilder_.mergeFrom(value);
+ } else {
+ createCloudDatabaseBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 11;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ */
+ public Builder clearCreateCloudDatabase() {
+ if (createCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 11) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 11) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ createCloudDatabaseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ */
+ public com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder
+ getCreateCloudDatabaseBuilder() {
+ return getCreateCloudDatabaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder
+ getCreateCloudDatabaseOrBuilder() {
+ if ((actionCase_ == 11) && (createCloudDatabaseBuilder_ != null)) {
+ return createCloudDatabaseBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 11) {
+ return (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction,
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder>
+ getCreateCloudDatabaseFieldBuilder() {
+ if (createCloudDatabaseBuilder_ == null) {
+ if (!(actionCase_ == 11)) {
+ action_ = com.google.spanner.executor.v1.CreateCloudDatabaseAction.getDefaultInstance();
+ }
+ createCloudDatabaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction,
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder>(
+ (com.google.spanner.executor.v1.CreateCloudDatabaseAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 11;
+ onChanged();
+ return createCloudDatabaseBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder>
+ updateCloudDatabaseDdlBuilder_;
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ *
+ * @return Whether the updateCloudDatabaseDdl field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateCloudDatabaseDdl() {
+ return actionCase_ == 12;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ *
+ * @return The updateCloudDatabaseDdl.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction getUpdateCloudDatabaseDdl() {
+ if (updateCloudDatabaseDdlBuilder_ == null) {
+ if (actionCase_ == 12) {
+ return (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 12) {
+ return updateCloudDatabaseDdlBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ public Builder setUpdateCloudDatabaseDdl(
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction value) {
+ if (updateCloudDatabaseDdlBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ updateCloudDatabaseDdlBuilder_.setMessage(value);
+ }
+ actionCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ public Builder setUpdateCloudDatabaseDdl(
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder builderForValue) {
+ if (updateCloudDatabaseDdlBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateCloudDatabaseDdlBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ public Builder mergeUpdateCloudDatabaseDdl(
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction value) {
+ if (updateCloudDatabaseDdlBuilder_ == null) {
+ if (actionCase_ == 12
+ && action_
+ != com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.newBuilder(
+ (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 12) {
+ updateCloudDatabaseDdlBuilder_.mergeFrom(value);
+ } else {
+ updateCloudDatabaseDdlBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 12;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ public Builder clearUpdateCloudDatabaseDdl() {
+ if (updateCloudDatabaseDdlBuilder_ == null) {
+ if (actionCase_ == 12) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 12) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ updateCloudDatabaseDdlBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder
+ getUpdateCloudDatabaseDdlBuilder() {
+ return getUpdateCloudDatabaseDdlFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder
+ getUpdateCloudDatabaseDdlOrBuilder() {
+ if ((actionCase_ == 12) && (updateCloudDatabaseDdlBuilder_ != null)) {
+ return updateCloudDatabaseDdlBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 12) {
+ return (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder>
+ getUpdateCloudDatabaseDdlFieldBuilder() {
+ if (updateCloudDatabaseDdlBuilder_ == null) {
+ if (!(actionCase_ == 12)) {
+ action_ =
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.getDefaultInstance();
+ }
+ updateCloudDatabaseDdlBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder>(
+ (com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 12;
+ onChanged();
+ return updateCloudDatabaseDdlBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder>
+ updateCloudDatabaseBuilder_;
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ *
+ * @return Whether the updateCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateCloudDatabase() {
+ return actionCase_ == 27;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ *
+ * @return The updateCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseAction getUpdateCloudDatabase() {
+ if (updateCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 27) {
+ return (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 27) {
+ return updateCloudDatabaseBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ */
+ public Builder setUpdateCloudDatabase(
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction value) {
+ if (updateCloudDatabaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ updateCloudDatabaseBuilder_.setMessage(value);
+ }
+ actionCase_ = 27;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ */
+ public Builder setUpdateCloudDatabase(
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder builderForValue) {
+ if (updateCloudDatabaseBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateCloudDatabaseBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 27;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ */
+ public Builder mergeUpdateCloudDatabase(
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction value) {
+ if (updateCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 27
+ && action_
+ != com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction.newBuilder(
+ (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 27) {
+ updateCloudDatabaseBuilder_.mergeFrom(value);
+ } else {
+ updateCloudDatabaseBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 27;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ */
+ public Builder clearUpdateCloudDatabase() {
+ if (updateCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 27) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 27) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ updateCloudDatabaseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ */
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder
+ getUpdateCloudDatabaseBuilder() {
+ return getUpdateCloudDatabaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder
+ getUpdateCloudDatabaseOrBuilder() {
+ if ((actionCase_ == 27) && (updateCloudDatabaseBuilder_ != null)) {
+ return updateCloudDatabaseBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 27) {
+ return (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder>
+ getUpdateCloudDatabaseFieldBuilder() {
+ if (updateCloudDatabaseBuilder_ == null) {
+ if (!(actionCase_ == 27)) {
+ action_ = com.google.spanner.executor.v1.UpdateCloudDatabaseAction.getDefaultInstance();
+ }
+ updateCloudDatabaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder>(
+ (com.google.spanner.executor.v1.UpdateCloudDatabaseAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 27;
+ onChanged();
+ return updateCloudDatabaseBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DropCloudDatabaseAction,
+ com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder>
+ dropCloudDatabaseBuilder_;
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ *
+ * @return Whether the dropCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasDropCloudDatabase() {
+ return actionCase_ == 13;
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ *
+ * @return The dropCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DropCloudDatabaseAction getDropCloudDatabase() {
+ if (dropCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 13) {
+ return (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 13) {
+ return dropCloudDatabaseBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ public Builder setDropCloudDatabase(
+ com.google.spanner.executor.v1.DropCloudDatabaseAction value) {
+ if (dropCloudDatabaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ dropCloudDatabaseBuilder_.setMessage(value);
+ }
+ actionCase_ = 13;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ public Builder setDropCloudDatabase(
+ com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder builderForValue) {
+ if (dropCloudDatabaseBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ dropCloudDatabaseBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 13;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ public Builder mergeDropCloudDatabase(
+ com.google.spanner.executor.v1.DropCloudDatabaseAction value) {
+ if (dropCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 13
+ && action_
+ != com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.DropCloudDatabaseAction.newBuilder(
+ (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 13) {
+ dropCloudDatabaseBuilder_.mergeFrom(value);
+ } else {
+ dropCloudDatabaseBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 13;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ public Builder clearDropCloudDatabase() {
+ if (dropCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 13) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 13) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ dropCloudDatabaseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ public com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder
+ getDropCloudDatabaseBuilder() {
+ return getDropCloudDatabaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder
+ getDropCloudDatabaseOrBuilder() {
+ if ((actionCase_ == 13) && (dropCloudDatabaseBuilder_ != null)) {
+ return dropCloudDatabaseBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 13) {
+ return (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DropCloudDatabaseAction,
+ com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder>
+ getDropCloudDatabaseFieldBuilder() {
+ if (dropCloudDatabaseBuilder_ == null) {
+ if (!(actionCase_ == 13)) {
+ action_ = com.google.spanner.executor.v1.DropCloudDatabaseAction.getDefaultInstance();
+ }
+ dropCloudDatabaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DropCloudDatabaseAction,
+ com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder>(
+ (com.google.spanner.executor.v1.DropCloudDatabaseAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 13;
+ onChanged();
+ return dropCloudDatabaseBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudDatabasesAction,
+ com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder,
+ com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder>
+ listCloudDatabasesBuilder_;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ *
+ * @return Whether the listCloudDatabases field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudDatabases() {
+ return actionCase_ == 14;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ *
+ * @return The listCloudDatabases.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudDatabasesAction getListCloudDatabases() {
+ if (listCloudDatabasesBuilder_ == null) {
+ if (actionCase_ == 14) {
+ return (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 14) {
+ return listCloudDatabasesBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ public Builder setListCloudDatabases(
+ com.google.spanner.executor.v1.ListCloudDatabasesAction value) {
+ if (listCloudDatabasesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ listCloudDatabasesBuilder_.setMessage(value);
+ }
+ actionCase_ = 14;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ public Builder setListCloudDatabases(
+ com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder builderForValue) {
+ if (listCloudDatabasesBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ listCloudDatabasesBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 14;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ public Builder mergeListCloudDatabases(
+ com.google.spanner.executor.v1.ListCloudDatabasesAction value) {
+ if (listCloudDatabasesBuilder_ == null) {
+ if (actionCase_ == 14
+ && action_
+ != com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudDatabasesAction.newBuilder(
+ (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 14) {
+ listCloudDatabasesBuilder_.mergeFrom(value);
+ } else {
+ listCloudDatabasesBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 14;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ public Builder clearListCloudDatabases() {
+ if (listCloudDatabasesBuilder_ == null) {
+ if (actionCase_ == 14) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 14) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ listCloudDatabasesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ public com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder
+ getListCloudDatabasesBuilder() {
+ return getListCloudDatabasesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder
+ getListCloudDatabasesOrBuilder() {
+ if ((actionCase_ == 14) && (listCloudDatabasesBuilder_ != null)) {
+ return listCloudDatabasesBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 14) {
+ return (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudDatabasesAction,
+ com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder,
+ com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder>
+ getListCloudDatabasesFieldBuilder() {
+ if (listCloudDatabasesBuilder_ == null) {
+ if (!(actionCase_ == 14)) {
+ action_ = com.google.spanner.executor.v1.ListCloudDatabasesAction.getDefaultInstance();
+ }
+ listCloudDatabasesBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudDatabasesAction,
+ com.google.spanner.executor.v1.ListCloudDatabasesAction.Builder,
+ com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder>(
+ (com.google.spanner.executor.v1.ListCloudDatabasesAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 14;
+ onChanged();
+ return listCloudDatabasesBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction,
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder>
+ listCloudDatabaseOperationsBuilder_;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ *
+ * @return Whether the listCloudDatabaseOperations field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudDatabaseOperations() {
+ return actionCase_ == 15;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ *
+ * @return The listCloudDatabaseOperations.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction
+ getListCloudDatabaseOperations() {
+ if (listCloudDatabaseOperationsBuilder_ == null) {
+ if (actionCase_ == 15) {
+ return (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction
+ .getDefaultInstance();
+ } else {
+ if (actionCase_ == 15) {
+ return listCloudDatabaseOperationsBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ public Builder setListCloudDatabaseOperations(
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction value) {
+ if (listCloudDatabaseOperationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ listCloudDatabaseOperationsBuilder_.setMessage(value);
+ }
+ actionCase_ = 15;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ public Builder setListCloudDatabaseOperations(
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder builderForValue) {
+ if (listCloudDatabaseOperationsBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ listCloudDatabaseOperationsBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 15;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ public Builder mergeListCloudDatabaseOperations(
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction value) {
+ if (listCloudDatabaseOperationsBuilder_ == null) {
+ if (actionCase_ == 15
+ && action_
+ != com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.newBuilder(
+ (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 15) {
+ listCloudDatabaseOperationsBuilder_.mergeFrom(value);
+ } else {
+ listCloudDatabaseOperationsBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 15;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ public Builder clearListCloudDatabaseOperations() {
+ if (listCloudDatabaseOperationsBuilder_ == null) {
+ if (actionCase_ == 15) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 15) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ listCloudDatabaseOperationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ public com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder
+ getListCloudDatabaseOperationsBuilder() {
+ return getListCloudDatabaseOperationsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder
+ getListCloudDatabaseOperationsOrBuilder() {
+ if ((actionCase_ == 15) && (listCloudDatabaseOperationsBuilder_ != null)) {
+ return listCloudDatabaseOperationsBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 15) {
+ return (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction
+ .getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction,
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder>
+ getListCloudDatabaseOperationsFieldBuilder() {
+ if (listCloudDatabaseOperationsBuilder_ == null) {
+ if (!(actionCase_ == 15)) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.getDefaultInstance();
+ }
+ listCloudDatabaseOperationsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction,
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder>(
+ (com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 15;
+ onChanged();
+ return listCloudDatabaseOperationsBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction,
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder>
+ restoreCloudDatabaseBuilder_;
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ *
+ * @return Whether the restoreCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasRestoreCloudDatabase() {
+ return actionCase_ == 16;
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ *
+ * @return The restoreCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.RestoreCloudDatabaseAction getRestoreCloudDatabase() {
+ if (restoreCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 16) {
+ return (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 16) {
+ return restoreCloudDatabaseBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ public Builder setRestoreCloudDatabase(
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction value) {
+ if (restoreCloudDatabaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ restoreCloudDatabaseBuilder_.setMessage(value);
+ }
+ actionCase_ = 16;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ public Builder setRestoreCloudDatabase(
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder builderForValue) {
+ if (restoreCloudDatabaseBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ restoreCloudDatabaseBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 16;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ public Builder mergeRestoreCloudDatabase(
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction value) {
+ if (restoreCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 16
+ && action_
+ != com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction.newBuilder(
+ (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 16) {
+ restoreCloudDatabaseBuilder_.mergeFrom(value);
+ } else {
+ restoreCloudDatabaseBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 16;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ public Builder clearRestoreCloudDatabase() {
+ if (restoreCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 16) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 16) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ restoreCloudDatabaseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ public com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder
+ getRestoreCloudDatabaseBuilder() {
+ return getRestoreCloudDatabaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder
+ getRestoreCloudDatabaseOrBuilder() {
+ if ((actionCase_ == 16) && (restoreCloudDatabaseBuilder_ != null)) {
+ return restoreCloudDatabaseBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 16) {
+ return (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction,
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder>
+ getRestoreCloudDatabaseFieldBuilder() {
+ if (restoreCloudDatabaseBuilder_ == null) {
+ if (!(actionCase_ == 16)) {
+ action_ = com.google.spanner.executor.v1.RestoreCloudDatabaseAction.getDefaultInstance();
+ }
+ restoreCloudDatabaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction,
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder>(
+ (com.google.spanner.executor.v1.RestoreCloudDatabaseAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 16;
+ onChanged();
+ return restoreCloudDatabaseBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudDatabaseAction,
+ com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder>
+ getCloudDatabaseBuilder_;
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ *
+ * @return Whether the getCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetCloudDatabase() {
+ return actionCase_ == 17;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ *
+ * @return The getCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudDatabaseAction getGetCloudDatabase() {
+ if (getCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 17) {
+ return (com.google.spanner.executor.v1.GetCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 17) {
+ return getCloudDatabaseBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ public Builder setGetCloudDatabase(
+ com.google.spanner.executor.v1.GetCloudDatabaseAction value) {
+ if (getCloudDatabaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ getCloudDatabaseBuilder_.setMessage(value);
+ }
+ actionCase_ = 17;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ public Builder setGetCloudDatabase(
+ com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder builderForValue) {
+ if (getCloudDatabaseBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ getCloudDatabaseBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 17;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ public Builder mergeGetCloudDatabase(
+ com.google.spanner.executor.v1.GetCloudDatabaseAction value) {
+ if (getCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 17
+ && action_
+ != com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.GetCloudDatabaseAction.newBuilder(
+ (com.google.spanner.executor.v1.GetCloudDatabaseAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 17) {
+ getCloudDatabaseBuilder_.mergeFrom(value);
+ } else {
+ getCloudDatabaseBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 17;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ public Builder clearGetCloudDatabase() {
+ if (getCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 17) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 17) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ getCloudDatabaseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ public com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder
+ getGetCloudDatabaseBuilder() {
+ return getGetCloudDatabaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder
+ getGetCloudDatabaseOrBuilder() {
+ if ((actionCase_ == 17) && (getCloudDatabaseBuilder_ != null)) {
+ return getCloudDatabaseBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 17) {
+ return (com.google.spanner.executor.v1.GetCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudDatabaseAction,
+ com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder>
+ getGetCloudDatabaseFieldBuilder() {
+ if (getCloudDatabaseBuilder_ == null) {
+ if (!(actionCase_ == 17)) {
+ action_ = com.google.spanner.executor.v1.GetCloudDatabaseAction.getDefaultInstance();
+ }
+ getCloudDatabaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudDatabaseAction,
+ com.google.spanner.executor.v1.GetCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder>(
+ (com.google.spanner.executor.v1.GetCloudDatabaseAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 17;
+ onChanged();
+ return getCloudDatabaseBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudBackupAction,
+ com.google.spanner.executor.v1.CreateCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder>
+ createCloudBackupBuilder_;
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ *
+ * @return Whether the createCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasCreateCloudBackup() {
+ return actionCase_ == 18;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ *
+ * @return The createCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudBackupAction getCreateCloudBackup() {
+ if (createCloudBackupBuilder_ == null) {
+ if (actionCase_ == 18) {
+ return (com.google.spanner.executor.v1.CreateCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 18) {
+ return createCloudBackupBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ public Builder setCreateCloudBackup(
+ com.google.spanner.executor.v1.CreateCloudBackupAction value) {
+ if (createCloudBackupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ createCloudBackupBuilder_.setMessage(value);
+ }
+ actionCase_ = 18;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ public Builder setCreateCloudBackup(
+ com.google.spanner.executor.v1.CreateCloudBackupAction.Builder builderForValue) {
+ if (createCloudBackupBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ createCloudBackupBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 18;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ public Builder mergeCreateCloudBackup(
+ com.google.spanner.executor.v1.CreateCloudBackupAction value) {
+ if (createCloudBackupBuilder_ == null) {
+ if (actionCase_ == 18
+ && action_
+ != com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.CreateCloudBackupAction.newBuilder(
+ (com.google.spanner.executor.v1.CreateCloudBackupAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 18) {
+ createCloudBackupBuilder_.mergeFrom(value);
+ } else {
+ createCloudBackupBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 18;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ public Builder clearCreateCloudBackup() {
+ if (createCloudBackupBuilder_ == null) {
+ if (actionCase_ == 18) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 18) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ createCloudBackupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ public com.google.spanner.executor.v1.CreateCloudBackupAction.Builder
+ getCreateCloudBackupBuilder() {
+ return getCreateCloudBackupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder
+ getCreateCloudBackupOrBuilder() {
+ if ((actionCase_ == 18) && (createCloudBackupBuilder_ != null)) {
+ return createCloudBackupBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 18) {
+ return (com.google.spanner.executor.v1.CreateCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudBackupAction,
+ com.google.spanner.executor.v1.CreateCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder>
+ getCreateCloudBackupFieldBuilder() {
+ if (createCloudBackupBuilder_ == null) {
+ if (!(actionCase_ == 18)) {
+ action_ = com.google.spanner.executor.v1.CreateCloudBackupAction.getDefaultInstance();
+ }
+ createCloudBackupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CreateCloudBackupAction,
+ com.google.spanner.executor.v1.CreateCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder>(
+ (com.google.spanner.executor.v1.CreateCloudBackupAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 18;
+ onChanged();
+ return createCloudBackupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CopyCloudBackupAction,
+ com.google.spanner.executor.v1.CopyCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder>
+ copyCloudBackupBuilder_;
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ *
+ * @return Whether the copyCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasCopyCloudBackup() {
+ return actionCase_ == 19;
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ *
+ * @return The copyCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CopyCloudBackupAction getCopyCloudBackup() {
+ if (copyCloudBackupBuilder_ == null) {
+ if (actionCase_ == 19) {
+ return (com.google.spanner.executor.v1.CopyCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 19) {
+ return copyCloudBackupBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ public Builder setCopyCloudBackup(com.google.spanner.executor.v1.CopyCloudBackupAction value) {
+ if (copyCloudBackupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ copyCloudBackupBuilder_.setMessage(value);
+ }
+ actionCase_ = 19;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ public Builder setCopyCloudBackup(
+ com.google.spanner.executor.v1.CopyCloudBackupAction.Builder builderForValue) {
+ if (copyCloudBackupBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ copyCloudBackupBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 19;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ public Builder mergeCopyCloudBackup(
+ com.google.spanner.executor.v1.CopyCloudBackupAction value) {
+ if (copyCloudBackupBuilder_ == null) {
+ if (actionCase_ == 19
+ && action_
+ != com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.CopyCloudBackupAction.newBuilder(
+ (com.google.spanner.executor.v1.CopyCloudBackupAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 19) {
+ copyCloudBackupBuilder_.mergeFrom(value);
+ } else {
+ copyCloudBackupBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 19;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ public Builder clearCopyCloudBackup() {
+ if (copyCloudBackupBuilder_ == null) {
+ if (actionCase_ == 19) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 19) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ copyCloudBackupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ public com.google.spanner.executor.v1.CopyCloudBackupAction.Builder
+ getCopyCloudBackupBuilder() {
+ return getCopyCloudBackupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder
+ getCopyCloudBackupOrBuilder() {
+ if ((actionCase_ == 19) && (copyCloudBackupBuilder_ != null)) {
+ return copyCloudBackupBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 19) {
+ return (com.google.spanner.executor.v1.CopyCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CopyCloudBackupAction,
+ com.google.spanner.executor.v1.CopyCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder>
+ getCopyCloudBackupFieldBuilder() {
+ if (copyCloudBackupBuilder_ == null) {
+ if (!(actionCase_ == 19)) {
+ action_ = com.google.spanner.executor.v1.CopyCloudBackupAction.getDefaultInstance();
+ }
+ copyCloudBackupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CopyCloudBackupAction,
+ com.google.spanner.executor.v1.CopyCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder>(
+ (com.google.spanner.executor.v1.CopyCloudBackupAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 19;
+ onChanged();
+ return copyCloudBackupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudBackupAction,
+ com.google.spanner.executor.v1.GetCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder>
+ getCloudBackupBuilder_;
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ *
+ * @return Whether the getCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetCloudBackup() {
+ return actionCase_ == 20;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ *
+ * @return The getCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudBackupAction getGetCloudBackup() {
+ if (getCloudBackupBuilder_ == null) {
+ if (actionCase_ == 20) {
+ return (com.google.spanner.executor.v1.GetCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 20) {
+ return getCloudBackupBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ public Builder setGetCloudBackup(com.google.spanner.executor.v1.GetCloudBackupAction value) {
+ if (getCloudBackupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ getCloudBackupBuilder_.setMessage(value);
+ }
+ actionCase_ = 20;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ public Builder setGetCloudBackup(
+ com.google.spanner.executor.v1.GetCloudBackupAction.Builder builderForValue) {
+ if (getCloudBackupBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ getCloudBackupBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 20;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ public Builder mergeGetCloudBackup(com.google.spanner.executor.v1.GetCloudBackupAction value) {
+ if (getCloudBackupBuilder_ == null) {
+ if (actionCase_ == 20
+ && action_
+ != com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.GetCloudBackupAction.newBuilder(
+ (com.google.spanner.executor.v1.GetCloudBackupAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 20) {
+ getCloudBackupBuilder_.mergeFrom(value);
+ } else {
+ getCloudBackupBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 20;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ public Builder clearGetCloudBackup() {
+ if (getCloudBackupBuilder_ == null) {
+ if (actionCase_ == 20) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 20) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ getCloudBackupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ public com.google.spanner.executor.v1.GetCloudBackupAction.Builder getGetCloudBackupBuilder() {
+ return getGetCloudBackupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder
+ getGetCloudBackupOrBuilder() {
+ if ((actionCase_ == 20) && (getCloudBackupBuilder_ != null)) {
+ return getCloudBackupBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 20) {
+ return (com.google.spanner.executor.v1.GetCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudBackupAction,
+ com.google.spanner.executor.v1.GetCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder>
+ getGetCloudBackupFieldBuilder() {
+ if (getCloudBackupBuilder_ == null) {
+ if (!(actionCase_ == 20)) {
+ action_ = com.google.spanner.executor.v1.GetCloudBackupAction.getDefaultInstance();
+ }
+ getCloudBackupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetCloudBackupAction,
+ com.google.spanner.executor.v1.GetCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder>(
+ (com.google.spanner.executor.v1.GetCloudBackupAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 20;
+ onChanged();
+ return getCloudBackupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudBackupAction,
+ com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder>
+ updateCloudBackupBuilder_;
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ *
+ * @return Whether the updateCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdateCloudBackup() {
+ return actionCase_ == 21;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ *
+ * @return The updateCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudBackupAction getUpdateCloudBackup() {
+ if (updateCloudBackupBuilder_ == null) {
+ if (actionCase_ == 21) {
+ return (com.google.spanner.executor.v1.UpdateCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 21) {
+ return updateCloudBackupBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ public Builder setUpdateCloudBackup(
+ com.google.spanner.executor.v1.UpdateCloudBackupAction value) {
+ if (updateCloudBackupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ updateCloudBackupBuilder_.setMessage(value);
+ }
+ actionCase_ = 21;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ public Builder setUpdateCloudBackup(
+ com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder builderForValue) {
+ if (updateCloudBackupBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ updateCloudBackupBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 21;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ public Builder mergeUpdateCloudBackup(
+ com.google.spanner.executor.v1.UpdateCloudBackupAction value) {
+ if (updateCloudBackupBuilder_ == null) {
+ if (actionCase_ == 21
+ && action_
+ != com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.UpdateCloudBackupAction.newBuilder(
+ (com.google.spanner.executor.v1.UpdateCloudBackupAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 21) {
+ updateCloudBackupBuilder_.mergeFrom(value);
+ } else {
+ updateCloudBackupBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 21;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ public Builder clearUpdateCloudBackup() {
+ if (updateCloudBackupBuilder_ == null) {
+ if (actionCase_ == 21) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 21) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ updateCloudBackupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ public com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder
+ getUpdateCloudBackupBuilder() {
+ return getUpdateCloudBackupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder
+ getUpdateCloudBackupOrBuilder() {
+ if ((actionCase_ == 21) && (updateCloudBackupBuilder_ != null)) {
+ return updateCloudBackupBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 21) {
+ return (com.google.spanner.executor.v1.UpdateCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudBackupAction,
+ com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder>
+ getUpdateCloudBackupFieldBuilder() {
+ if (updateCloudBackupBuilder_ == null) {
+ if (!(actionCase_ == 21)) {
+ action_ = com.google.spanner.executor.v1.UpdateCloudBackupAction.getDefaultInstance();
+ }
+ updateCloudBackupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.UpdateCloudBackupAction,
+ com.google.spanner.executor.v1.UpdateCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder>(
+ (com.google.spanner.executor.v1.UpdateCloudBackupAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 21;
+ onChanged();
+ return updateCloudBackupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteCloudBackupAction,
+ com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder>
+ deleteCloudBackupBuilder_;
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ *
+ * @return Whether the deleteCloudBackup field is set.
+ */
+ @java.lang.Override
+ public boolean hasDeleteCloudBackup() {
+ return actionCase_ == 22;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ *
+ * @return The deleteCloudBackup.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteCloudBackupAction getDeleteCloudBackup() {
+ if (deleteCloudBackupBuilder_ == null) {
+ if (actionCase_ == 22) {
+ return (com.google.spanner.executor.v1.DeleteCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 22) {
+ return deleteCloudBackupBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ public Builder setDeleteCloudBackup(
+ com.google.spanner.executor.v1.DeleteCloudBackupAction value) {
+ if (deleteCloudBackupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ deleteCloudBackupBuilder_.setMessage(value);
+ }
+ actionCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ public Builder setDeleteCloudBackup(
+ com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder builderForValue) {
+ if (deleteCloudBackupBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ deleteCloudBackupBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ public Builder mergeDeleteCloudBackup(
+ com.google.spanner.executor.v1.DeleteCloudBackupAction value) {
+ if (deleteCloudBackupBuilder_ == null) {
+ if (actionCase_ == 22
+ && action_
+ != com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.DeleteCloudBackupAction.newBuilder(
+ (com.google.spanner.executor.v1.DeleteCloudBackupAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 22) {
+ deleteCloudBackupBuilder_.mergeFrom(value);
+ } else {
+ deleteCloudBackupBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 22;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ public Builder clearDeleteCloudBackup() {
+ if (deleteCloudBackupBuilder_ == null) {
+ if (actionCase_ == 22) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 22) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ deleteCloudBackupBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ public com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder
+ getDeleteCloudBackupBuilder() {
+ return getDeleteCloudBackupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder
+ getDeleteCloudBackupOrBuilder() {
+ if ((actionCase_ == 22) && (deleteCloudBackupBuilder_ != null)) {
+ return deleteCloudBackupBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 22) {
+ return (com.google.spanner.executor.v1.DeleteCloudBackupAction) action_;
+ }
+ return com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteCloudBackupAction,
+ com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder>
+ getDeleteCloudBackupFieldBuilder() {
+ if (deleteCloudBackupBuilder_ == null) {
+ if (!(actionCase_ == 22)) {
+ action_ = com.google.spanner.executor.v1.DeleteCloudBackupAction.getDefaultInstance();
+ }
+ deleteCloudBackupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DeleteCloudBackupAction,
+ com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder,
+ com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder>(
+ (com.google.spanner.executor.v1.DeleteCloudBackupAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 22;
+ onChanged();
+ return deleteCloudBackupBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudBackupsAction,
+ com.google.spanner.executor.v1.ListCloudBackupsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder>
+ listCloudBackupsBuilder_;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ *
+ * @return Whether the listCloudBackups field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudBackups() {
+ return actionCase_ == 23;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ *
+ * @return The listCloudBackups.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudBackupsAction getListCloudBackups() {
+ if (listCloudBackupsBuilder_ == null) {
+ if (actionCase_ == 23) {
+ return (com.google.spanner.executor.v1.ListCloudBackupsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 23) {
+ return listCloudBackupsBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ public Builder setListCloudBackups(
+ com.google.spanner.executor.v1.ListCloudBackupsAction value) {
+ if (listCloudBackupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ listCloudBackupsBuilder_.setMessage(value);
+ }
+ actionCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ public Builder setListCloudBackups(
+ com.google.spanner.executor.v1.ListCloudBackupsAction.Builder builderForValue) {
+ if (listCloudBackupsBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ listCloudBackupsBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ public Builder mergeListCloudBackups(
+ com.google.spanner.executor.v1.ListCloudBackupsAction value) {
+ if (listCloudBackupsBuilder_ == null) {
+ if (actionCase_ == 23
+ && action_
+ != com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudBackupsAction.newBuilder(
+ (com.google.spanner.executor.v1.ListCloudBackupsAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 23) {
+ listCloudBackupsBuilder_.mergeFrom(value);
+ } else {
+ listCloudBackupsBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 23;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ public Builder clearListCloudBackups() {
+ if (listCloudBackupsBuilder_ == null) {
+ if (actionCase_ == 23) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 23) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ listCloudBackupsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ public com.google.spanner.executor.v1.ListCloudBackupsAction.Builder
+ getListCloudBackupsBuilder() {
+ return getListCloudBackupsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder
+ getListCloudBackupsOrBuilder() {
+ if ((actionCase_ == 23) && (listCloudBackupsBuilder_ != null)) {
+ return listCloudBackupsBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 23) {
+ return (com.google.spanner.executor.v1.ListCloudBackupsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudBackupsAction,
+ com.google.spanner.executor.v1.ListCloudBackupsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder>
+ getListCloudBackupsFieldBuilder() {
+ if (listCloudBackupsBuilder_ == null) {
+ if (!(actionCase_ == 23)) {
+ action_ = com.google.spanner.executor.v1.ListCloudBackupsAction.getDefaultInstance();
+ }
+ listCloudBackupsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudBackupsAction,
+ com.google.spanner.executor.v1.ListCloudBackupsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder>(
+ (com.google.spanner.executor.v1.ListCloudBackupsAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 23;
+ onChanged();
+ return listCloudBackupsBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction,
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder>
+ listCloudBackupOperationsBuilder_;
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ *
+ * @return Whether the listCloudBackupOperations field is set.
+ */
+ @java.lang.Override
+ public boolean hasListCloudBackupOperations() {
+ return actionCase_ == 24;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ *
+ * @return The listCloudBackupOperations.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudBackupOperationsAction
+ getListCloudBackupOperations() {
+ if (listCloudBackupOperationsBuilder_ == null) {
+ if (actionCase_ == 24) {
+ return (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 24) {
+ return listCloudBackupOperationsBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ public Builder setListCloudBackupOperations(
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction value) {
+ if (listCloudBackupOperationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ listCloudBackupOperationsBuilder_.setMessage(value);
+ }
+ actionCase_ = 24;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ public Builder setListCloudBackupOperations(
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder builderForValue) {
+ if (listCloudBackupOperationsBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ listCloudBackupOperationsBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 24;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ public Builder mergeListCloudBackupOperations(
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction value) {
+ if (listCloudBackupOperationsBuilder_ == null) {
+ if (actionCase_ == 24
+ && action_
+ != com.google.spanner.executor.v1.ListCloudBackupOperationsAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction.newBuilder(
+ (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 24) {
+ listCloudBackupOperationsBuilder_.mergeFrom(value);
+ } else {
+ listCloudBackupOperationsBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 24;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ public Builder clearListCloudBackupOperations() {
+ if (listCloudBackupOperationsBuilder_ == null) {
+ if (actionCase_ == 24) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 24) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ listCloudBackupOperationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ public com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder
+ getListCloudBackupOperationsBuilder() {
+ return getListCloudBackupOperationsFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder
+ getListCloudBackupOperationsOrBuilder() {
+ if ((actionCase_ == 24) && (listCloudBackupOperationsBuilder_ != null)) {
+ return listCloudBackupOperationsBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 24) {
+ return (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_;
+ }
+ return com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction,
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder>
+ getListCloudBackupOperationsFieldBuilder() {
+ if (listCloudBackupOperationsBuilder_ == null) {
+ if (!(actionCase_ == 24)) {
+ action_ =
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction.getDefaultInstance();
+ }
+ listCloudBackupOperationsBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction,
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction.Builder,
+ com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder>(
+ (com.google.spanner.executor.v1.ListCloudBackupOperationsAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 24;
+ onChanged();
+ return listCloudBackupOperationsBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetOperationAction,
+ com.google.spanner.executor.v1.GetOperationAction.Builder,
+ com.google.spanner.executor.v1.GetOperationActionOrBuilder>
+ getOperationBuilder_;
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ *
+ * @return Whether the getOperation field is set.
+ */
+ @java.lang.Override
+ public boolean hasGetOperation() {
+ return actionCase_ == 25;
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ *
+ * @return The getOperation.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetOperationAction getGetOperation() {
+ if (getOperationBuilder_ == null) {
+ if (actionCase_ == 25) {
+ return (com.google.spanner.executor.v1.GetOperationAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 25) {
+ return getOperationBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ public Builder setGetOperation(com.google.spanner.executor.v1.GetOperationAction value) {
+ if (getOperationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ getOperationBuilder_.setMessage(value);
+ }
+ actionCase_ = 25;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ public Builder setGetOperation(
+ com.google.spanner.executor.v1.GetOperationAction.Builder builderForValue) {
+ if (getOperationBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ getOperationBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 25;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ public Builder mergeGetOperation(com.google.spanner.executor.v1.GetOperationAction value) {
+ if (getOperationBuilder_ == null) {
+ if (actionCase_ == 25
+ && action_ != com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.GetOperationAction.newBuilder(
+ (com.google.spanner.executor.v1.GetOperationAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 25) {
+ getOperationBuilder_.mergeFrom(value);
+ } else {
+ getOperationBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 25;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ public Builder clearGetOperation() {
+ if (getOperationBuilder_ == null) {
+ if (actionCase_ == 25) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 25) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ getOperationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ public com.google.spanner.executor.v1.GetOperationAction.Builder getGetOperationBuilder() {
+ return getGetOperationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.GetOperationActionOrBuilder getGetOperationOrBuilder() {
+ if ((actionCase_ == 25) && (getOperationBuilder_ != null)) {
+ return getOperationBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 25) {
+ return (com.google.spanner.executor.v1.GetOperationAction) action_;
+ }
+ return com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetOperationAction,
+ com.google.spanner.executor.v1.GetOperationAction.Builder,
+ com.google.spanner.executor.v1.GetOperationActionOrBuilder>
+ getGetOperationFieldBuilder() {
+ if (getOperationBuilder_ == null) {
+ if (!(actionCase_ == 25)) {
+ action_ = com.google.spanner.executor.v1.GetOperationAction.getDefaultInstance();
+ }
+ getOperationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.GetOperationAction,
+ com.google.spanner.executor.v1.GetOperationAction.Builder,
+ com.google.spanner.executor.v1.GetOperationActionOrBuilder>(
+ (com.google.spanner.executor.v1.GetOperationAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 25;
+ onChanged();
+ return getOperationBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CancelOperationAction,
+ com.google.spanner.executor.v1.CancelOperationAction.Builder,
+ com.google.spanner.executor.v1.CancelOperationActionOrBuilder>
+ cancelOperationBuilder_;
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ *
+ * @return Whether the cancelOperation field is set.
+ */
+ @java.lang.Override
+ public boolean hasCancelOperation() {
+ return actionCase_ == 26;
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ *
+ * @return The cancelOperation.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CancelOperationAction getCancelOperation() {
+ if (cancelOperationBuilder_ == null) {
+ if (actionCase_ == 26) {
+ return (com.google.spanner.executor.v1.CancelOperationAction) action_;
+ }
+ return com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 26) {
+ return cancelOperationBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ public Builder setCancelOperation(com.google.spanner.executor.v1.CancelOperationAction value) {
+ if (cancelOperationBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ cancelOperationBuilder_.setMessage(value);
+ }
+ actionCase_ = 26;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ public Builder setCancelOperation(
+ com.google.spanner.executor.v1.CancelOperationAction.Builder builderForValue) {
+ if (cancelOperationBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ cancelOperationBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 26;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ public Builder mergeCancelOperation(
+ com.google.spanner.executor.v1.CancelOperationAction value) {
+ if (cancelOperationBuilder_ == null) {
+ if (actionCase_ == 26
+ && action_
+ != com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.CancelOperationAction.newBuilder(
+ (com.google.spanner.executor.v1.CancelOperationAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 26) {
+ cancelOperationBuilder_.mergeFrom(value);
+ } else {
+ cancelOperationBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 26;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ public Builder clearCancelOperation() {
+ if (cancelOperationBuilder_ == null) {
+ if (actionCase_ == 26) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 26) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ cancelOperationBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ public com.google.spanner.executor.v1.CancelOperationAction.Builder
+ getCancelOperationBuilder() {
+ return getCancelOperationFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CancelOperationActionOrBuilder
+ getCancelOperationOrBuilder() {
+ if ((actionCase_ == 26) && (cancelOperationBuilder_ != null)) {
+ return cancelOperationBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 26) {
+ return (com.google.spanner.executor.v1.CancelOperationAction) action_;
+ }
+ return com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CancelOperationAction,
+ com.google.spanner.executor.v1.CancelOperationAction.Builder,
+ com.google.spanner.executor.v1.CancelOperationActionOrBuilder>
+ getCancelOperationFieldBuilder() {
+ if (cancelOperationBuilder_ == null) {
+ if (!(actionCase_ == 26)) {
+ action_ = com.google.spanner.executor.v1.CancelOperationAction.getDefaultInstance();
+ }
+ cancelOperationBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CancelOperationAction,
+ com.google.spanner.executor.v1.CancelOperationAction.Builder,
+ com.google.spanner.executor.v1.CancelOperationActionOrBuilder>(
+ (com.google.spanner.executor.v1.CancelOperationAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 26;
+ onChanged();
+ return cancelOperationBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction,
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder>
+ reconfigureCloudDatabaseBuilder_;
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ *
+ * @return Whether the reconfigureCloudDatabase field is set.
+ */
+ @java.lang.Override
+ public boolean hasReconfigureCloudDatabase() {
+ return actionCase_ == 28;
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ *
+ * @return The reconfigureCloudDatabase.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction
+ getReconfigureCloudDatabase() {
+ if (reconfigureCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 28) {
+ return (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance();
+ } else {
+ if (actionCase_ == 28) {
+ return reconfigureCloudDatabaseBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ public Builder setReconfigureCloudDatabase(
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction value) {
+ if (reconfigureCloudDatabaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ action_ = value;
+ onChanged();
+ } else {
+ reconfigureCloudDatabaseBuilder_.setMessage(value);
+ }
+ actionCase_ = 28;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ public Builder setReconfigureCloudDatabase(
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder builderForValue) {
+ if (reconfigureCloudDatabaseBuilder_ == null) {
+ action_ = builderForValue.build();
+ onChanged();
+ } else {
+ reconfigureCloudDatabaseBuilder_.setMessage(builderForValue.build());
+ }
+ actionCase_ = 28;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ public Builder mergeReconfigureCloudDatabase(
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction value) {
+ if (reconfigureCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 28
+ && action_
+ != com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction
+ .getDefaultInstance()) {
+ action_ =
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.newBuilder(
+ (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ action_ = value;
+ }
+ onChanged();
+ } else {
+ if (actionCase_ == 28) {
+ reconfigureCloudDatabaseBuilder_.mergeFrom(value);
+ } else {
+ reconfigureCloudDatabaseBuilder_.setMessage(value);
+ }
+ }
+ actionCase_ = 28;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ public Builder clearReconfigureCloudDatabase() {
+ if (reconfigureCloudDatabaseBuilder_ == null) {
+ if (actionCase_ == 28) {
+ actionCase_ = 0;
+ action_ = null;
+ onChanged();
+ }
+ } else {
+ if (actionCase_ == 28) {
+ actionCase_ = 0;
+ action_ = null;
+ }
+ reconfigureCloudDatabaseBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ public com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder
+ getReconfigureCloudDatabaseBuilder() {
+ return getReconfigureCloudDatabaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder
+ getReconfigureCloudDatabaseOrBuilder() {
+ if ((actionCase_ == 28) && (reconfigureCloudDatabaseBuilder_ != null)) {
+ return reconfigureCloudDatabaseBuilder_.getMessageOrBuilder();
+ } else {
+ if (actionCase_ == 28) {
+ return (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_;
+ }
+ return com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction,
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder>
+ getReconfigureCloudDatabaseFieldBuilder() {
+ if (reconfigureCloudDatabaseBuilder_ == null) {
+ if (!(actionCase_ == 28)) {
+ action_ =
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.getDefaultInstance();
+ }
+ reconfigureCloudDatabaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction,
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction.Builder,
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder>(
+ (com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction) action_,
+ getParentForChildren(),
+ isClean());
+ action_ = null;
+ }
+ actionCase_ = 28;
+ onChanged();
+ return reconfigureCloudDatabaseBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.AdminAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.AdminAction)
+ private static final com.google.spanner.executor.v1.AdminAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.AdminAction();
+ }
+
+ public static com.google.spanner.executor.v1.AdminAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ *
+ * @return Whether the createUserInstanceConfig field is set.
+ */
+ boolean hasCreateUserInstanceConfig();
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ *
+ * @return The createUserInstanceConfig.
+ */
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction getCreateUserInstanceConfig();
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.CreateUserInstanceConfigAction create_user_instance_config = 1;
+ *
+ */
+ com.google.spanner.executor.v1.CreateUserInstanceConfigActionOrBuilder
+ getCreateUserInstanceConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ *
+ * @return Whether the updateUserInstanceConfig field is set.
+ */
+ boolean hasUpdateUserInstanceConfig();
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ *
+ * @return The updateUserInstanceConfig.
+ */
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigAction getUpdateUserInstanceConfig();
+ /**
+ *
+ *
+ * + * Action that updates a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.UpdateUserInstanceConfigAction update_user_instance_config = 2;
+ *
+ */
+ com.google.spanner.executor.v1.UpdateUserInstanceConfigActionOrBuilder
+ getUpdateUserInstanceConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ *
+ * @return Whether the deleteUserInstanceConfig field is set.
+ */
+ boolean hasDeleteUserInstanceConfig();
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ *
+ * @return The deleteUserInstanceConfig.
+ */
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction getDeleteUserInstanceConfig();
+ /**
+ *
+ *
+ * + * Action that deletes a user instance config. + *+ * + *
+ * .google.spanner.executor.v1.DeleteUserInstanceConfigAction delete_user_instance_config = 3;
+ *
+ */
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigActionOrBuilder
+ getDeleteUserInstanceConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ *
+ * @return Whether the getCloudInstanceConfig field is set.
+ */
+ boolean hasGetCloudInstanceConfig();
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ *
+ * @return The getCloudInstanceConfig.
+ */
+ com.google.spanner.executor.v1.GetCloudInstanceConfigAction getGetCloudInstanceConfig();
+ /**
+ *
+ *
+ * + * Action that gets a user instance config. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceConfigAction get_cloud_instance_config = 4;
+ *
+ */
+ com.google.spanner.executor.v1.GetCloudInstanceConfigActionOrBuilder
+ getGetCloudInstanceConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ *
+ * @return Whether the listInstanceConfigs field is set.
+ */
+ boolean hasListInstanceConfigs();
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ *
+ * @return The listInstanceConfigs.
+ */
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsAction getListInstanceConfigs();
+ /**
+ *
+ *
+ * + * Action that lists user instance configs. + *+ * + *
.google.spanner.executor.v1.ListCloudInstanceConfigsAction list_instance_configs = 5;
+ *
+ */
+ com.google.spanner.executor.v1.ListCloudInstanceConfigsActionOrBuilder
+ getListInstanceConfigsOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ *
+ * @return Whether the createCloudInstance field is set.
+ */
+ boolean hasCreateCloudInstance();
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ *
+ * @return The createCloudInstance.
+ */
+ com.google.spanner.executor.v1.CreateCloudInstanceAction getCreateCloudInstance();
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.CreateCloudInstanceAction create_cloud_instance = 6;
+ */
+ com.google.spanner.executor.v1.CreateCloudInstanceActionOrBuilder
+ getCreateCloudInstanceOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ *
+ * @return Whether the updateCloudInstance field is set.
+ */
+ boolean hasUpdateCloudInstance();
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ *
+ * @return The updateCloudInstance.
+ */
+ com.google.spanner.executor.v1.UpdateCloudInstanceAction getUpdateCloudInstance();
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.UpdateCloudInstanceAction update_cloud_instance = 7;
+ */
+ com.google.spanner.executor.v1.UpdateCloudInstanceActionOrBuilder
+ getUpdateCloudInstanceOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ *
+ * @return Whether the deleteCloudInstance field is set.
+ */
+ boolean hasDeleteCloudInstance();
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ *
+ * @return The deleteCloudInstance.
+ */
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction getDeleteCloudInstance();
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.DeleteCloudInstanceAction delete_cloud_instance = 8;
+ */
+ com.google.spanner.executor.v1.DeleteCloudInstanceActionOrBuilder
+ getDeleteCloudInstanceOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ *
+ * @return Whether the listCloudInstances field is set.
+ */
+ boolean hasListCloudInstances();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ *
+ * @return The listCloudInstances.
+ */
+ com.google.spanner.executor.v1.ListCloudInstancesAction getListCloudInstances();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner instances. + *+ * + *
.google.spanner.executor.v1.ListCloudInstancesAction list_cloud_instances = 9;
+ */
+ com.google.spanner.executor.v1.ListCloudInstancesActionOrBuilder getListCloudInstancesOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ *
+ * @return Whether the getCloudInstance field is set.
+ */
+ boolean hasGetCloudInstance();
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ *
+ * @return The getCloudInstance.
+ */
+ com.google.spanner.executor.v1.GetCloudInstanceAction getGetCloudInstance();
+ /**
+ *
+ *
+ * + * Action that retrieves a Cloud Spanner instance. + *+ * + *
.google.spanner.executor.v1.GetCloudInstanceAction get_cloud_instance = 10;
+ */
+ com.google.spanner.executor.v1.GetCloudInstanceActionOrBuilder getGetCloudInstanceOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ * @return Whether the createCloudDatabase field is set.
+ */
+ boolean hasCreateCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ *
+ * @return The createCloudDatabase.
+ */
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction getCreateCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.CreateCloudDatabaseAction create_cloud_database = 11;
+ */
+ com.google.spanner.executor.v1.CreateCloudDatabaseActionOrBuilder
+ getCreateCloudDatabaseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ *
+ * @return Whether the updateCloudDatabaseDdl field is set.
+ */
+ boolean hasUpdateCloudDatabaseDdl();
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ *
+ * @return The updateCloudDatabaseDdl.
+ */
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction getUpdateCloudDatabaseDdl();
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseDdlAction update_cloud_database_ddl = 12;
+ *
+ */
+ com.google.spanner.executor.v1.UpdateCloudDatabaseDdlActionOrBuilder
+ getUpdateCloudDatabaseDdlOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ * @return Whether the updateCloudDatabase field is set.
+ */
+ boolean hasUpdateCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ *
+ * @return The updateCloudDatabase.
+ */
+ com.google.spanner.executor.v1.UpdateCloudDatabaseAction getUpdateCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that updates the schema of a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.UpdateCloudDatabaseAction update_cloud_database = 27;
+ */
+ com.google.spanner.executor.v1.UpdateCloudDatabaseActionOrBuilder
+ getUpdateCloudDatabaseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ *
+ * @return Whether the dropCloudDatabase field is set.
+ */
+ boolean hasDropCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ *
+ * @return The dropCloudDatabase.
+ */
+ com.google.spanner.executor.v1.DropCloudDatabaseAction getDropCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.DropCloudDatabaseAction drop_cloud_database = 13;
+ */
+ com.google.spanner.executor.v1.DropCloudDatabaseActionOrBuilder getDropCloudDatabaseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ *
+ * @return Whether the listCloudDatabases field is set.
+ */
+ boolean hasListCloudDatabases();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ *
+ * @return The listCloudDatabases.
+ */
+ com.google.spanner.executor.v1.ListCloudDatabasesAction getListCloudDatabases();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner databases. + *+ * + *
.google.spanner.executor.v1.ListCloudDatabasesAction list_cloud_databases = 14;
+ */
+ com.google.spanner.executor.v1.ListCloudDatabasesActionOrBuilder getListCloudDatabasesOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ *
+ * @return Whether the listCloudDatabaseOperations field is set.
+ */
+ boolean hasListCloudDatabaseOperations();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ *
+ * @return The listCloudDatabaseOperations.
+ */
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsAction getListCloudDatabaseOperations();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudDatabaseOperationsAction list_cloud_database_operations = 15;
+ *
+ */
+ com.google.spanner.executor.v1.ListCloudDatabaseOperationsActionOrBuilder
+ getListCloudDatabaseOperationsOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ *
+ * @return Whether the restoreCloudDatabase field is set.
+ */
+ boolean hasRestoreCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ *
+ * @return The restoreCloudDatabase.
+ */
+ com.google.spanner.executor.v1.RestoreCloudDatabaseAction getRestoreCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that restores a Cloud Spanner database from a backup. + *+ * + *
.google.spanner.executor.v1.RestoreCloudDatabaseAction restore_cloud_database = 16;
+ *
+ */
+ com.google.spanner.executor.v1.RestoreCloudDatabaseActionOrBuilder
+ getRestoreCloudDatabaseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ *
+ * @return Whether the getCloudDatabase field is set.
+ */
+ boolean hasGetCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ *
+ * @return The getCloudDatabase.
+ */
+ com.google.spanner.executor.v1.GetCloudDatabaseAction getGetCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database. + *+ * + *
.google.spanner.executor.v1.GetCloudDatabaseAction get_cloud_database = 17;
+ */
+ com.google.spanner.executor.v1.GetCloudDatabaseActionOrBuilder getGetCloudDatabaseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ *
+ * @return Whether the createCloudBackup field is set.
+ */
+ boolean hasCreateCloudBackup();
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ *
+ * @return The createCloudBackup.
+ */
+ com.google.spanner.executor.v1.CreateCloudBackupAction getCreateCloudBackup();
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CreateCloudBackupAction create_cloud_backup = 18;
+ */
+ com.google.spanner.executor.v1.CreateCloudBackupActionOrBuilder getCreateCloudBackupOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ *
+ * @return Whether the copyCloudBackup field is set.
+ */
+ boolean hasCopyCloudBackup();
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ *
+ * @return The copyCloudBackup.
+ */
+ com.google.spanner.executor.v1.CopyCloudBackupAction getCopyCloudBackup();
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.CopyCloudBackupAction copy_cloud_backup = 19;
+ */
+ com.google.spanner.executor.v1.CopyCloudBackupActionOrBuilder getCopyCloudBackupOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ *
+ * @return Whether the getCloudBackup field is set.
+ */
+ boolean hasGetCloudBackup();
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ *
+ * @return The getCloudBackup.
+ */
+ com.google.spanner.executor.v1.GetCloudBackupAction getGetCloudBackup();
+ /**
+ *
+ *
+ * + * Action that gets a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.GetCloudBackupAction get_cloud_backup = 20;
+ */
+ com.google.spanner.executor.v1.GetCloudBackupActionOrBuilder getGetCloudBackupOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ *
+ * @return Whether the updateCloudBackup field is set.
+ */
+ boolean hasUpdateCloudBackup();
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ *
+ * @return The updateCloudBackup.
+ */
+ com.google.spanner.executor.v1.UpdateCloudBackupAction getUpdateCloudBackup();
+ /**
+ *
+ *
+ * + * Action that updates a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.UpdateCloudBackupAction update_cloud_backup = 21;
+ */
+ com.google.spanner.executor.v1.UpdateCloudBackupActionOrBuilder getUpdateCloudBackupOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ *
+ * @return Whether the deleteCloudBackup field is set.
+ */
+ boolean hasDeleteCloudBackup();
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ *
+ * @return The deleteCloudBackup.
+ */
+ com.google.spanner.executor.v1.DeleteCloudBackupAction getDeleteCloudBackup();
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + *
.google.spanner.executor.v1.DeleteCloudBackupAction delete_cloud_backup = 22;
+ */
+ com.google.spanner.executor.v1.DeleteCloudBackupActionOrBuilder getDeleteCloudBackupOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ *
+ * @return Whether the listCloudBackups field is set.
+ */
+ boolean hasListCloudBackups();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ *
+ * @return The listCloudBackups.
+ */
+ com.google.spanner.executor.v1.ListCloudBackupsAction getListCloudBackups();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backups. + *+ * + *
.google.spanner.executor.v1.ListCloudBackupsAction list_cloud_backups = 23;
+ */
+ com.google.spanner.executor.v1.ListCloudBackupsActionOrBuilder getListCloudBackupsOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ *
+ * @return Whether the listCloudBackupOperations field is set.
+ */
+ boolean hasListCloudBackupOperations();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ *
+ * @return The listCloudBackupOperations.
+ */
+ com.google.spanner.executor.v1.ListCloudBackupOperationsAction getListCloudBackupOperations();
+ /**
+ *
+ *
+ * + * Action that lists Cloud Spanner database backup operations. + *+ * + *
+ * .google.spanner.executor.v1.ListCloudBackupOperationsAction list_cloud_backup_operations = 24;
+ *
+ */
+ com.google.spanner.executor.v1.ListCloudBackupOperationsActionOrBuilder
+ getListCloudBackupOperationsOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ *
+ * @return Whether the getOperation field is set.
+ */
+ boolean hasGetOperation();
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ *
+ * @return The getOperation.
+ */
+ com.google.spanner.executor.v1.GetOperationAction getGetOperation();
+ /**
+ *
+ *
+ * + * Action that gets an operation. + *+ * + *
.google.spanner.executor.v1.GetOperationAction get_operation = 25;
+ */
+ com.google.spanner.executor.v1.GetOperationActionOrBuilder getGetOperationOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ *
+ * @return Whether the cancelOperation field is set.
+ */
+ boolean hasCancelOperation();
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ *
+ * @return The cancelOperation.
+ */
+ com.google.spanner.executor.v1.CancelOperationAction getCancelOperation();
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + *
.google.spanner.executor.v1.CancelOperationAction cancel_operation = 26;
+ */
+ com.google.spanner.executor.v1.CancelOperationActionOrBuilder getCancelOperationOrBuilder();
+
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ *
+ * @return Whether the reconfigureCloudDatabase field is set.
+ */
+ boolean hasReconfigureCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ *
+ * @return The reconfigureCloudDatabase.
+ */
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseAction getReconfigureCloudDatabase();
+ /**
+ *
+ *
+ * + * Action that reconfigures a Cloud Spanner database. + *+ * + *
+ * .google.spanner.executor.v1.ReconfigureCloudDatabaseAction reconfigure_cloud_database = 28;
+ *
+ */
+ com.google.spanner.executor.v1.ReconfigureCloudDatabaseActionOrBuilder
+ getReconfigureCloudDatabaseOrBuilder();
+
+ com.google.spanner.executor.v1.AdminAction.ActionCase getActionCase();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java
new file mode 100644
index 00000000000..d88a95bf2ea
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/AdminResult.java
@@ -0,0 +1,1812 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * AdminResult contains admin action results, for database/backup/operation. + *+ * + * Protobuf type {@code google.spanner.executor.v1.AdminResult} + */ +public final class AdminResult extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.AdminResult) + AdminResultOrBuilder { + private static final long serialVersionUID = 0L; + // Use AdminResult.newBuilder() to construct. + private AdminResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private AdminResult() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new AdminResult(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_AdminResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_AdminResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.AdminResult.class, + com.google.spanner.executor.v1.AdminResult.Builder.class); + } + + public static final int BACKUP_RESPONSE_FIELD_NUMBER = 1; + private com.google.spanner.executor.v1.CloudBackupResponse backupResponse_; + /** + * + * + *
+ * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ *
+ * @return Whether the backupResponse field is set.
+ */
+ @java.lang.Override
+ public boolean hasBackupResponse() {
+ return backupResponse_ != null;
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ *
+ * @return The backupResponse.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CloudBackupResponse getBackupResponse() {
+ return backupResponse_ == null
+ ? com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance()
+ : backupResponse_;
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CloudBackupResponseOrBuilder getBackupResponseOrBuilder() {
+ return backupResponse_ == null
+ ? com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance()
+ : backupResponse_;
+ }
+
+ public static final int OPERATION_RESPONSE_FIELD_NUMBER = 2;
+ private com.google.spanner.executor.v1.OperationResponse operationResponse_;
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ *
+ * @return Whether the operationResponse field is set.
+ */
+ @java.lang.Override
+ public boolean hasOperationResponse() {
+ return operationResponse_ != null;
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ *
+ * @return The operationResponse.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.OperationResponse getOperationResponse() {
+ return operationResponse_ == null
+ ? com.google.spanner.executor.v1.OperationResponse.getDefaultInstance()
+ : operationResponse_;
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.OperationResponseOrBuilder getOperationResponseOrBuilder() {
+ return operationResponse_ == null
+ ? com.google.spanner.executor.v1.OperationResponse.getDefaultInstance()
+ : operationResponse_;
+ }
+
+ public static final int DATABASE_RESPONSE_FIELD_NUMBER = 3;
+ private com.google.spanner.executor.v1.CloudDatabaseResponse databaseResponse_;
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ *
+ * @return Whether the databaseResponse field is set.
+ */
+ @java.lang.Override
+ public boolean hasDatabaseResponse() {
+ return databaseResponse_ != null;
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ *
+ * @return The databaseResponse.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CloudDatabaseResponse getDatabaseResponse() {
+ return databaseResponse_ == null
+ ? com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance()
+ : databaseResponse_;
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder
+ getDatabaseResponseOrBuilder() {
+ return databaseResponse_ == null
+ ? com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance()
+ : databaseResponse_;
+ }
+
+ public static final int INSTANCE_RESPONSE_FIELD_NUMBER = 4;
+ private com.google.spanner.executor.v1.CloudInstanceResponse instanceResponse_;
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ *
+ * @return Whether the instanceResponse field is set.
+ */
+ @java.lang.Override
+ public boolean hasInstanceResponse() {
+ return instanceResponse_ != null;
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ *
+ * @return The instanceResponse.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CloudInstanceResponse getInstanceResponse() {
+ return instanceResponse_ == null
+ ? com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance()
+ : instanceResponse_;
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder
+ getInstanceResponseOrBuilder() {
+ return instanceResponse_ == null
+ ? com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance()
+ : instanceResponse_;
+ }
+
+ public static final int INSTANCE_CONFIG_RESPONSE_FIELD_NUMBER = 5;
+ private com.google.spanner.executor.v1.CloudInstanceConfigResponse instanceConfigResponse_;
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ *
+ * @return Whether the instanceConfigResponse field is set.
+ */
+ @java.lang.Override
+ public boolean hasInstanceConfigResponse() {
+ return instanceConfigResponse_ != null;
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ *
+ * @return The instanceConfigResponse.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CloudInstanceConfigResponse getInstanceConfigResponse() {
+ return instanceConfigResponse_ == null
+ ? com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance()
+ : instanceConfigResponse_;
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder
+ getInstanceConfigResponseOrBuilder() {
+ return instanceConfigResponse_ == null
+ ? com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance()
+ : instanceConfigResponse_;
+ }
+
+ 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 (backupResponse_ != null) {
+ output.writeMessage(1, getBackupResponse());
+ }
+ if (operationResponse_ != null) {
+ output.writeMessage(2, getOperationResponse());
+ }
+ if (databaseResponse_ != null) {
+ output.writeMessage(3, getDatabaseResponse());
+ }
+ if (instanceResponse_ != null) {
+ output.writeMessage(4, getInstanceResponse());
+ }
+ if (instanceConfigResponse_ != null) {
+ output.writeMessage(5, getInstanceConfigResponse());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (backupResponse_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBackupResponse());
+ }
+ if (operationResponse_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOperationResponse());
+ }
+ if (databaseResponse_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDatabaseResponse());
+ }
+ if (instanceResponse_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getInstanceResponse());
+ }
+ if (instanceConfigResponse_ != null) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(5, getInstanceConfigResponse());
+ }
+ size += getUnknownFields().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.spanner.executor.v1.AdminResult)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.AdminResult other =
+ (com.google.spanner.executor.v1.AdminResult) obj;
+
+ if (hasBackupResponse() != other.hasBackupResponse()) return false;
+ if (hasBackupResponse()) {
+ if (!getBackupResponse().equals(other.getBackupResponse())) return false;
+ }
+ if (hasOperationResponse() != other.hasOperationResponse()) return false;
+ if (hasOperationResponse()) {
+ if (!getOperationResponse().equals(other.getOperationResponse())) return false;
+ }
+ if (hasDatabaseResponse() != other.hasDatabaseResponse()) return false;
+ if (hasDatabaseResponse()) {
+ if (!getDatabaseResponse().equals(other.getDatabaseResponse())) return false;
+ }
+ if (hasInstanceResponse() != other.hasInstanceResponse()) return false;
+ if (hasInstanceResponse()) {
+ if (!getInstanceResponse().equals(other.getInstanceResponse())) return false;
+ }
+ if (hasInstanceConfigResponse() != other.hasInstanceConfigResponse()) return false;
+ if (hasInstanceConfigResponse()) {
+ if (!getInstanceConfigResponse().equals(other.getInstanceConfigResponse())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasBackupResponse()) {
+ hash = (37 * hash) + BACKUP_RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getBackupResponse().hashCode();
+ }
+ if (hasOperationResponse()) {
+ hash = (37 * hash) + OPERATION_RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getOperationResponse().hashCode();
+ }
+ if (hasDatabaseResponse()) {
+ hash = (37 * hash) + DATABASE_RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getDatabaseResponse().hashCode();
+ }
+ if (hasInstanceResponse()) {
+ hash = (37 * hash) + INSTANCE_RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceResponse().hashCode();
+ }
+ if (hasInstanceConfigResponse()) {
+ hash = (37 * hash) + INSTANCE_CONFIG_RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceConfigResponse().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult 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.spanner.executor.v1.AdminResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult 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.spanner.executor.v1.AdminResult parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult 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.spanner.executor.v1.AdminResult parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult 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.spanner.executor.v1.AdminResult 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;
+ }
+ /**
+ *
+ *
+ * + * AdminResult contains admin action results, for database/backup/operation. + *+ * + * Protobuf type {@code google.spanner.executor.v1.AdminResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ *
+ * @return Whether the backupResponse field is set.
+ */
+ public boolean hasBackupResponse() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ *
+ * @return The backupResponse.
+ */
+ public com.google.spanner.executor.v1.CloudBackupResponse getBackupResponse() {
+ if (backupResponseBuilder_ == null) {
+ return backupResponse_ == null
+ ? com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance()
+ : backupResponse_;
+ } else {
+ return backupResponseBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ public Builder setBackupResponse(com.google.spanner.executor.v1.CloudBackupResponse value) {
+ if (backupResponseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ backupResponse_ = value;
+ } else {
+ backupResponseBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ public Builder setBackupResponse(
+ com.google.spanner.executor.v1.CloudBackupResponse.Builder builderForValue) {
+ if (backupResponseBuilder_ == null) {
+ backupResponse_ = builderForValue.build();
+ } else {
+ backupResponseBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ public Builder mergeBackupResponse(com.google.spanner.executor.v1.CloudBackupResponse value) {
+ if (backupResponseBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && backupResponse_ != null
+ && backupResponse_
+ != com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance()) {
+ getBackupResponseBuilder().mergeFrom(value);
+ } else {
+ backupResponse_ = value;
+ }
+ } else {
+ backupResponseBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ public Builder clearBackupResponse() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ backupResponse_ = null;
+ if (backupResponseBuilder_ != null) {
+ backupResponseBuilder_.dispose();
+ backupResponseBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ public com.google.spanner.executor.v1.CloudBackupResponse.Builder getBackupResponseBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getBackupResponseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ public com.google.spanner.executor.v1.CloudBackupResponseOrBuilder
+ getBackupResponseOrBuilder() {
+ if (backupResponseBuilder_ != null) {
+ return backupResponseBuilder_.getMessageOrBuilder();
+ } else {
+ return backupResponse_ == null
+ ? com.google.spanner.executor.v1.CloudBackupResponse.getDefaultInstance()
+ : backupResponse_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudBackupResponse,
+ com.google.spanner.executor.v1.CloudBackupResponse.Builder,
+ com.google.spanner.executor.v1.CloudBackupResponseOrBuilder>
+ getBackupResponseFieldBuilder() {
+ if (backupResponseBuilder_ == null) {
+ backupResponseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudBackupResponse,
+ com.google.spanner.executor.v1.CloudBackupResponse.Builder,
+ com.google.spanner.executor.v1.CloudBackupResponseOrBuilder>(
+ getBackupResponse(), getParentForChildren(), isClean());
+ backupResponse_ = null;
+ }
+ return backupResponseBuilder_;
+ }
+
+ private com.google.spanner.executor.v1.OperationResponse operationResponse_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.OperationResponse,
+ com.google.spanner.executor.v1.OperationResponse.Builder,
+ com.google.spanner.executor.v1.OperationResponseOrBuilder>
+ operationResponseBuilder_;
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ *
+ * @return Whether the operationResponse field is set.
+ */
+ public boolean hasOperationResponse() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ *
+ * @return The operationResponse.
+ */
+ public com.google.spanner.executor.v1.OperationResponse getOperationResponse() {
+ if (operationResponseBuilder_ == null) {
+ return operationResponse_ == null
+ ? com.google.spanner.executor.v1.OperationResponse.getDefaultInstance()
+ : operationResponse_;
+ } else {
+ return operationResponseBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ public Builder setOperationResponse(com.google.spanner.executor.v1.OperationResponse value) {
+ if (operationResponseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ operationResponse_ = value;
+ } else {
+ operationResponseBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ public Builder setOperationResponse(
+ com.google.spanner.executor.v1.OperationResponse.Builder builderForValue) {
+ if (operationResponseBuilder_ == null) {
+ operationResponse_ = builderForValue.build();
+ } else {
+ operationResponseBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ public Builder mergeOperationResponse(com.google.spanner.executor.v1.OperationResponse value) {
+ if (operationResponseBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && operationResponse_ != null
+ && operationResponse_
+ != com.google.spanner.executor.v1.OperationResponse.getDefaultInstance()) {
+ getOperationResponseBuilder().mergeFrom(value);
+ } else {
+ operationResponse_ = value;
+ }
+ } else {
+ operationResponseBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ public Builder clearOperationResponse() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ operationResponse_ = null;
+ if (operationResponseBuilder_ != null) {
+ operationResponseBuilder_.dispose();
+ operationResponseBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ public com.google.spanner.executor.v1.OperationResponse.Builder getOperationResponseBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getOperationResponseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ public com.google.spanner.executor.v1.OperationResponseOrBuilder
+ getOperationResponseOrBuilder() {
+ if (operationResponseBuilder_ != null) {
+ return operationResponseBuilder_.getMessageOrBuilder();
+ } else {
+ return operationResponse_ == null
+ ? com.google.spanner.executor.v1.OperationResponse.getDefaultInstance()
+ : operationResponse_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.OperationResponse,
+ com.google.spanner.executor.v1.OperationResponse.Builder,
+ com.google.spanner.executor.v1.OperationResponseOrBuilder>
+ getOperationResponseFieldBuilder() {
+ if (operationResponseBuilder_ == null) {
+ operationResponseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.OperationResponse,
+ com.google.spanner.executor.v1.OperationResponse.Builder,
+ com.google.spanner.executor.v1.OperationResponseOrBuilder>(
+ getOperationResponse(), getParentForChildren(), isClean());
+ operationResponse_ = null;
+ }
+ return operationResponseBuilder_;
+ }
+
+ private com.google.spanner.executor.v1.CloudDatabaseResponse databaseResponse_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudDatabaseResponse,
+ com.google.spanner.executor.v1.CloudDatabaseResponse.Builder,
+ com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder>
+ databaseResponseBuilder_;
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ *
+ * @return Whether the databaseResponse field is set.
+ */
+ public boolean hasDatabaseResponse() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ *
+ * @return The databaseResponse.
+ */
+ public com.google.spanner.executor.v1.CloudDatabaseResponse getDatabaseResponse() {
+ if (databaseResponseBuilder_ == null) {
+ return databaseResponse_ == null
+ ? com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance()
+ : databaseResponse_;
+ } else {
+ return databaseResponseBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ public Builder setDatabaseResponse(com.google.spanner.executor.v1.CloudDatabaseResponse value) {
+ if (databaseResponseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ databaseResponse_ = value;
+ } else {
+ databaseResponseBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ public Builder setDatabaseResponse(
+ com.google.spanner.executor.v1.CloudDatabaseResponse.Builder builderForValue) {
+ if (databaseResponseBuilder_ == null) {
+ databaseResponse_ = builderForValue.build();
+ } else {
+ databaseResponseBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ public Builder mergeDatabaseResponse(
+ com.google.spanner.executor.v1.CloudDatabaseResponse value) {
+ if (databaseResponseBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && databaseResponse_ != null
+ && databaseResponse_
+ != com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance()) {
+ getDatabaseResponseBuilder().mergeFrom(value);
+ } else {
+ databaseResponse_ = value;
+ }
+ } else {
+ databaseResponseBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ public Builder clearDatabaseResponse() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ databaseResponse_ = null;
+ if (databaseResponseBuilder_ != null) {
+ databaseResponseBuilder_.dispose();
+ databaseResponseBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ public com.google.spanner.executor.v1.CloudDatabaseResponse.Builder
+ getDatabaseResponseBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getDatabaseResponseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ public com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder
+ getDatabaseResponseOrBuilder() {
+ if (databaseResponseBuilder_ != null) {
+ return databaseResponseBuilder_.getMessageOrBuilder();
+ } else {
+ return databaseResponse_ == null
+ ? com.google.spanner.executor.v1.CloudDatabaseResponse.getDefaultInstance()
+ : databaseResponse_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudDatabaseResponse,
+ com.google.spanner.executor.v1.CloudDatabaseResponse.Builder,
+ com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder>
+ getDatabaseResponseFieldBuilder() {
+ if (databaseResponseBuilder_ == null) {
+ databaseResponseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudDatabaseResponse,
+ com.google.spanner.executor.v1.CloudDatabaseResponse.Builder,
+ com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder>(
+ getDatabaseResponse(), getParentForChildren(), isClean());
+ databaseResponse_ = null;
+ }
+ return databaseResponseBuilder_;
+ }
+
+ private com.google.spanner.executor.v1.CloudInstanceResponse instanceResponse_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudInstanceResponse,
+ com.google.spanner.executor.v1.CloudInstanceResponse.Builder,
+ com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder>
+ instanceResponseBuilder_;
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ *
+ * @return Whether the instanceResponse field is set.
+ */
+ public boolean hasInstanceResponse() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ *
+ * @return The instanceResponse.
+ */
+ public com.google.spanner.executor.v1.CloudInstanceResponse getInstanceResponse() {
+ if (instanceResponseBuilder_ == null) {
+ return instanceResponse_ == null
+ ? com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance()
+ : instanceResponse_;
+ } else {
+ return instanceResponseBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ public Builder setInstanceResponse(com.google.spanner.executor.v1.CloudInstanceResponse value) {
+ if (instanceResponseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceResponse_ = value;
+ } else {
+ instanceResponseBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ public Builder setInstanceResponse(
+ com.google.spanner.executor.v1.CloudInstanceResponse.Builder builderForValue) {
+ if (instanceResponseBuilder_ == null) {
+ instanceResponse_ = builderForValue.build();
+ } else {
+ instanceResponseBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ public Builder mergeInstanceResponse(
+ com.google.spanner.executor.v1.CloudInstanceResponse value) {
+ if (instanceResponseBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && instanceResponse_ != null
+ && instanceResponse_
+ != com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance()) {
+ getInstanceResponseBuilder().mergeFrom(value);
+ } else {
+ instanceResponse_ = value;
+ }
+ } else {
+ instanceResponseBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ public Builder clearInstanceResponse() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ instanceResponse_ = null;
+ if (instanceResponseBuilder_ != null) {
+ instanceResponseBuilder_.dispose();
+ instanceResponseBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ public com.google.spanner.executor.v1.CloudInstanceResponse.Builder
+ getInstanceResponseBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getInstanceResponseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ public com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder
+ getInstanceResponseOrBuilder() {
+ if (instanceResponseBuilder_ != null) {
+ return instanceResponseBuilder_.getMessageOrBuilder();
+ } else {
+ return instanceResponse_ == null
+ ? com.google.spanner.executor.v1.CloudInstanceResponse.getDefaultInstance()
+ : instanceResponse_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudInstanceResponse,
+ com.google.spanner.executor.v1.CloudInstanceResponse.Builder,
+ com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder>
+ getInstanceResponseFieldBuilder() {
+ if (instanceResponseBuilder_ == null) {
+ instanceResponseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudInstanceResponse,
+ com.google.spanner.executor.v1.CloudInstanceResponse.Builder,
+ com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder>(
+ getInstanceResponse(), getParentForChildren(), isClean());
+ instanceResponse_ = null;
+ }
+ return instanceResponseBuilder_;
+ }
+
+ private com.google.spanner.executor.v1.CloudInstanceConfigResponse instanceConfigResponse_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse,
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder,
+ com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder>
+ instanceConfigResponseBuilder_;
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ *
+ * @return Whether the instanceConfigResponse field is set.
+ */
+ public boolean hasInstanceConfigResponse() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ *
+ * @return The instanceConfigResponse.
+ */
+ public com.google.spanner.executor.v1.CloudInstanceConfigResponse getInstanceConfigResponse() {
+ if (instanceConfigResponseBuilder_ == null) {
+ return instanceConfigResponse_ == null
+ ? com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance()
+ : instanceConfigResponse_;
+ } else {
+ return instanceConfigResponseBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ public Builder setInstanceConfigResponse(
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse value) {
+ if (instanceConfigResponseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceConfigResponse_ = value;
+ } else {
+ instanceConfigResponseBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ public Builder setInstanceConfigResponse(
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder builderForValue) {
+ if (instanceConfigResponseBuilder_ == null) {
+ instanceConfigResponse_ = builderForValue.build();
+ } else {
+ instanceConfigResponseBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ public Builder mergeInstanceConfigResponse(
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse value) {
+ if (instanceConfigResponseBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && instanceConfigResponse_ != null
+ && instanceConfigResponse_
+ != com.google.spanner.executor.v1.CloudInstanceConfigResponse
+ .getDefaultInstance()) {
+ getInstanceConfigResponseBuilder().mergeFrom(value);
+ } else {
+ instanceConfigResponse_ = value;
+ }
+ } else {
+ instanceConfigResponseBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ public Builder clearInstanceConfigResponse() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ instanceConfigResponse_ = null;
+ if (instanceConfigResponseBuilder_ != null) {
+ instanceConfigResponseBuilder_.dispose();
+ instanceConfigResponseBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ public com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder
+ getInstanceConfigResponseBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getInstanceConfigResponseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ public com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder
+ getInstanceConfigResponseOrBuilder() {
+ if (instanceConfigResponseBuilder_ != null) {
+ return instanceConfigResponseBuilder_.getMessageOrBuilder();
+ } else {
+ return instanceConfigResponse_ == null
+ ? com.google.spanner.executor.v1.CloudInstanceConfigResponse.getDefaultInstance()
+ : instanceConfigResponse_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse,
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder,
+ com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder>
+ getInstanceConfigResponseFieldBuilder() {
+ if (instanceConfigResponseBuilder_ == null) {
+ instanceConfigResponseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse,
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder,
+ com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder>(
+ getInstanceConfigResponse(), getParentForChildren(), isClean());
+ instanceConfigResponse_ = null;
+ }
+ return instanceConfigResponseBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.AdminResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.AdminResult)
+ private static final com.google.spanner.executor.v1.AdminResult DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.AdminResult();
+ }
+
+ public static com.google.spanner.executor.v1.AdminResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ *
+ * @return Whether the backupResponse field is set.
+ */
+ boolean hasBackupResponse();
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ *
+ * @return The backupResponse.
+ */
+ com.google.spanner.executor.v1.CloudBackupResponse getBackupResponse();
+ /**
+ *
+ *
+ * + * Results of cloud backup related actions. + *+ * + *
.google.spanner.executor.v1.CloudBackupResponse backup_response = 1;
+ */
+ com.google.spanner.executor.v1.CloudBackupResponseOrBuilder getBackupResponseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ *
+ * @return Whether the operationResponse field is set.
+ */
+ boolean hasOperationResponse();
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ *
+ * @return The operationResponse.
+ */
+ com.google.spanner.executor.v1.OperationResponse getOperationResponse();
+ /**
+ *
+ *
+ * + * Results of operation related actions. + *+ * + *
.google.spanner.executor.v1.OperationResponse operation_response = 2;
+ */
+ com.google.spanner.executor.v1.OperationResponseOrBuilder getOperationResponseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ *
+ * @return Whether the databaseResponse field is set.
+ */
+ boolean hasDatabaseResponse();
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ *
+ * @return The databaseResponse.
+ */
+ com.google.spanner.executor.v1.CloudDatabaseResponse getDatabaseResponse();
+ /**
+ *
+ *
+ * + * Results of database related actions. + *+ * + *
.google.spanner.executor.v1.CloudDatabaseResponse database_response = 3;
+ */
+ com.google.spanner.executor.v1.CloudDatabaseResponseOrBuilder getDatabaseResponseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ *
+ * @return Whether the instanceResponse field is set.
+ */
+ boolean hasInstanceResponse();
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ *
+ * @return The instanceResponse.
+ */
+ com.google.spanner.executor.v1.CloudInstanceResponse getInstanceResponse();
+ /**
+ *
+ *
+ * + * Results of instance related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceResponse instance_response = 4;
+ */
+ com.google.spanner.executor.v1.CloudInstanceResponseOrBuilder getInstanceResponseOrBuilder();
+
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ *
+ * @return Whether the instanceConfigResponse field is set.
+ */
+ boolean hasInstanceConfigResponse();
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ *
+ * @return The instanceConfigResponse.
+ */
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse getInstanceConfigResponse();
+ /**
+ *
+ *
+ * + * Results of instance config related actions. + *+ * + *
.google.spanner.executor.v1.CloudInstanceConfigResponse instance_config_response = 5;
+ *
+ */
+ com.google.spanner.executor.v1.CloudInstanceConfigResponseOrBuilder
+ getInstanceConfigResponseOrBuilder();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java
new file mode 100644
index 00000000000..e437cfe7700
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchDmlAction.java
@@ -0,0 +1,933 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Batch of DML statements invoked using batched execution. + *+ * + * Protobuf type {@code google.spanner.executor.v1.BatchDmlAction} + */ +public final class BatchDmlAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.BatchDmlAction) + BatchDmlActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchDmlAction.newBuilder() to construct. + private BatchDmlAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchDmlAction() { + updates_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchDmlAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_BatchDmlAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_BatchDmlAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.BatchDmlAction.class, + com.google.spanner.executor.v1.BatchDmlAction.Builder.class); + } + + public static final int UPDATES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.spanner.executor.v1.QueryActionOrBuilder>
+ getUpdatesOrBuilderList() {
+ return updates_;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ @java.lang.Override
+ public int getUpdatesCount() {
+ return updates_.size();
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.QueryAction getUpdates(int index) {
+ return updates_.get(index);
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder(int index) {
+ return updates_.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 < updates_.size(); i++) {
+ output.writeMessage(1, updates_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < updates_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, updates_.get(i));
+ }
+ size += getUnknownFields().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.spanner.executor.v1.BatchDmlAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.BatchDmlAction other =
+ (com.google.spanner.executor.v1.BatchDmlAction) obj;
+
+ if (!getUpdatesList().equals(other.getUpdatesList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getUpdatesCount() > 0) {
+ hash = (37 * hash) + UPDATES_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdatesList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction 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.spanner.executor.v1.BatchDmlAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction 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.spanner.executor.v1.BatchDmlAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction 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.spanner.executor.v1.BatchDmlAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.BatchDmlAction 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.spanner.executor.v1.BatchDmlAction 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;
+ }
+ /**
+ *
+ *
+ * + * Batch of DML statements invoked using batched execution. + *+ * + * Protobuf type {@code google.spanner.executor.v1.BatchDmlAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public java.util.List+ * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public int getUpdatesCount() {
+ if (updatesBuilder_ == null) {
+ return updates_.size();
+ } else {
+ return updatesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public com.google.spanner.executor.v1.QueryAction getUpdates(int index) {
+ if (updatesBuilder_ == null) {
+ return updates_.get(index);
+ } else {
+ return updatesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder setUpdates(int index, com.google.spanner.executor.v1.QueryAction value) {
+ if (updatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureUpdatesIsMutable();
+ updates_.set(index, value);
+ onChanged();
+ } else {
+ updatesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder setUpdates(
+ int index, com.google.spanner.executor.v1.QueryAction.Builder builderForValue) {
+ if (updatesBuilder_ == null) {
+ ensureUpdatesIsMutable();
+ updates_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ updatesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder addUpdates(com.google.spanner.executor.v1.QueryAction value) {
+ if (updatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureUpdatesIsMutable();
+ updates_.add(value);
+ onChanged();
+ } else {
+ updatesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder addUpdates(int index, com.google.spanner.executor.v1.QueryAction value) {
+ if (updatesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureUpdatesIsMutable();
+ updates_.add(index, value);
+ onChanged();
+ } else {
+ updatesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder addUpdates(com.google.spanner.executor.v1.QueryAction.Builder builderForValue) {
+ if (updatesBuilder_ == null) {
+ ensureUpdatesIsMutable();
+ updates_.add(builderForValue.build());
+ onChanged();
+ } else {
+ updatesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder addUpdates(
+ int index, com.google.spanner.executor.v1.QueryAction.Builder builderForValue) {
+ if (updatesBuilder_ == null) {
+ ensureUpdatesIsMutable();
+ updates_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ updatesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder addAllUpdates(
+ java.lang.Iterable extends com.google.spanner.executor.v1.QueryAction> values) {
+ if (updatesBuilder_ == null) {
+ ensureUpdatesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, updates_);
+ onChanged();
+ } else {
+ updatesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder clearUpdates() {
+ if (updatesBuilder_ == null) {
+ updates_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ updatesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public Builder removeUpdates(int index) {
+ if (updatesBuilder_ == null) {
+ ensureUpdatesIsMutable();
+ updates_.remove(index);
+ onChanged();
+ } else {
+ updatesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public com.google.spanner.executor.v1.QueryAction.Builder getUpdatesBuilder(int index) {
+ return getUpdatesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder(int index) {
+ if (updatesBuilder_ == null) {
+ return updates_.get(index);
+ } else {
+ return updatesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public java.util.List extends com.google.spanner.executor.v1.QueryActionOrBuilder>
+ getUpdatesOrBuilderList() {
+ if (updatesBuilder_ != null) {
+ return updatesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(updates_);
+ }
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public com.google.spanner.executor.v1.QueryAction.Builder addUpdatesBuilder() {
+ return getUpdatesFieldBuilder()
+ .addBuilder(com.google.spanner.executor.v1.QueryAction.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public com.google.spanner.executor.v1.QueryAction.Builder addUpdatesBuilder(int index) {
+ return getUpdatesFieldBuilder()
+ .addBuilder(index, com.google.spanner.executor.v1.QueryAction.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ public java.util.List+ * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ java.util.List+ * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ com.google.spanner.executor.v1.QueryAction getUpdates(int index);
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ int getUpdatesCount();
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ java.util.List extends com.google.spanner.executor.v1.QueryActionOrBuilder>
+ getUpdatesOrBuilderList();
+ /**
+ *
+ *
+ * + * DML statements. + *+ * + *
repeated .google.spanner.executor.v1.QueryAction updates = 1;
+ */
+ com.google.spanner.executor.v1.QueryActionOrBuilder getUpdatesOrBuilder(int index);
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java
new file mode 100644
index 00000000000..ea5c14f7415
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/BatchPartition.java
@@ -0,0 +1,1081 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Identifies a database partition generated for a particular read or query. To + * read rows from the partition, use ExecutePartitionAction. + *+ * + * Protobuf type {@code google.spanner.executor.v1.BatchPartition} + */ +public final class BatchPartition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.BatchPartition) + BatchPartitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use BatchPartition.newBuilder() to construct. + private BatchPartition(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private BatchPartition() { + partition_ = com.google.protobuf.ByteString.EMPTY; + partitionToken_ = com.google.protobuf.ByteString.EMPTY; + table_ = ""; + index_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new BatchPartition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_BatchPartition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_BatchPartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.BatchPartition.class, + com.google.spanner.executor.v1.BatchPartition.Builder.class); + } + + private int bitField0_; + public static final int PARTITION_FIELD_NUMBER = 1; + private com.google.protobuf.ByteString partition_ = com.google.protobuf.ByteString.EMPTY; + /** + * + * + *
+ * Serialized Partition instance. + *+ * + *
bytes partition = 1;
+ *
+ * @return The partition.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPartition() {
+ return partition_;
+ }
+
+ public static final int PARTITION_TOKEN_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString partitionToken_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ * + * The partition token decrypted from partition. + *+ * + *
bytes partition_token = 2;
+ *
+ * @return The partitionToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPartitionToken() {
+ return partitionToken_;
+ }
+
+ public static final int TABLE_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object table_ = "";
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return Whether the table field is set.
+ */
+ @java.lang.Override
+ public boolean hasTable() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return The table.
+ */
+ @java.lang.Override
+ public java.lang.String getTable() {
+ java.lang.Object ref = table_;
+ 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();
+ table_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return The bytes for table.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTableBytes() {
+ java.lang.Object ref = table_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ table_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INDEX_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object index_ = "";
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return Whether the index field is set.
+ */
+ @java.lang.Override
+ public boolean hasIndex() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return The index.
+ */
+ @java.lang.Override
+ public java.lang.String getIndex() {
+ java.lang.Object ref = index_;
+ 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();
+ index_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return The bytes for index.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getIndexBytes() {
+ java.lang.Object ref = index_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ index_ = 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 (!partition_.isEmpty()) {
+ output.writeBytes(1, partition_);
+ }
+ if (!partitionToken_.isEmpty()) {
+ output.writeBytes(2, partitionToken_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, table_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, index_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!partition_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(1, partition_);
+ }
+ if (!partitionToken_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, partitionToken_);
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, table_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, index_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.BatchPartition)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.BatchPartition other =
+ (com.google.spanner.executor.v1.BatchPartition) obj;
+
+ if (!getPartition().equals(other.getPartition())) return false;
+ if (!getPartitionToken().equals(other.getPartitionToken())) return false;
+ if (hasTable() != other.hasTable()) return false;
+ if (hasTable()) {
+ if (!getTable().equals(other.getTable())) return false;
+ }
+ if (hasIndex() != other.hasIndex()) return false;
+ if (hasIndex()) {
+ if (!getIndex().equals(other.getIndex())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PARTITION_FIELD_NUMBER;
+ hash = (53 * hash) + getPartition().hashCode();
+ hash = (37 * hash) + PARTITION_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getPartitionToken().hashCode();
+ if (hasTable()) {
+ hash = (37 * hash) + TABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTable().hashCode();
+ }
+ if (hasIndex()) {
+ hash = (37 * hash) + INDEX_FIELD_NUMBER;
+ hash = (53 * hash) + getIndex().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition 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.spanner.executor.v1.BatchPartition parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition 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.spanner.executor.v1.BatchPartition parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition 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.spanner.executor.v1.BatchPartition parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition 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.spanner.executor.v1.BatchPartition 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;
+ }
+ /**
+ *
+ *
+ * + * Identifies a database partition generated for a particular read or query. To + * read rows from the partition, use ExecutePartitionAction. + *+ * + * Protobuf type {@code google.spanner.executor.v1.BatchPartition} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Serialized Partition instance. + *+ * + *
bytes partition = 1;
+ *
+ * @return The partition.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPartition() {
+ return partition_;
+ }
+ /**
+ *
+ *
+ * + * Serialized Partition instance. + *+ * + *
bytes partition = 1;
+ *
+ * @param value The partition to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPartition(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ partition_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Serialized Partition instance. + *+ * + *
bytes partition = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPartition() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ partition_ = getDefaultInstance().getPartition();
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString partitionToken_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ *
+ *
+ * + * The partition token decrypted from partition. + *+ * + *
bytes partition_token = 2;
+ *
+ * @return The partitionToken.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getPartitionToken() {
+ return partitionToken_;
+ }
+ /**
+ *
+ *
+ * + * The partition token decrypted from partition. + *+ * + *
bytes partition_token = 2;
+ *
+ * @param value The partitionToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPartitionToken(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ partitionToken_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The partition token decrypted from partition. + *+ * + *
bytes partition_token = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPartitionToken() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ partitionToken_ = getDefaultInstance().getPartitionToken();
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object table_ = "";
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return Whether the table field is set.
+ */
+ public boolean hasTable() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return The table.
+ */
+ public java.lang.String getTable() {
+ java.lang.Object ref = table_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ table_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return The bytes for table.
+ */
+ public com.google.protobuf.ByteString getTableBytes() {
+ java.lang.Object ref = table_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ table_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @param value The table to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTable(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ table_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTable() {
+ table_ = getDefaultInstance().getTable();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @param value The bytes for table to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ table_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object index_ = "";
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return Whether the index field is set.
+ */
+ public boolean hasIndex() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return The index.
+ */
+ public java.lang.String getIndex() {
+ java.lang.Object ref = index_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ index_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return The bytes for index.
+ */
+ public com.google.protobuf.ByteString getIndexBytes() {
+ java.lang.Object ref = index_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ index_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @param value The index to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIndex(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ index_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIndex() {
+ index_ = getDefaultInstance().getIndex();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @param value The bytes for index to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIndexBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ index_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.BatchPartition)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.BatchPartition)
+ private static final com.google.spanner.executor.v1.BatchPartition DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.BatchPartition();
+ }
+
+ public static com.google.spanner.executor.v1.BatchPartition getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Serialized Partition instance. + *+ * + *
bytes partition = 1;
+ *
+ * @return The partition.
+ */
+ com.google.protobuf.ByteString getPartition();
+
+ /**
+ *
+ *
+ * + * The partition token decrypted from partition. + *+ * + *
bytes partition_token = 2;
+ *
+ * @return The partitionToken.
+ */
+ com.google.protobuf.ByteString getPartitionToken();
+
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return Whether the table field is set.
+ */
+ boolean hasTable();
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return The table.
+ */
+ java.lang.String getTable();
+ /**
+ *
+ *
+ * + * Table name is set iff the partition was generated for a read (as opposed to + * a query). + *+ * + *
optional string table = 3;
+ *
+ * @return The bytes for table.
+ */
+ com.google.protobuf.ByteString getTableBytes();
+
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return Whether the index field is set.
+ */
+ boolean hasIndex();
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return The index.
+ */
+ java.lang.String getIndex();
+ /**
+ *
+ *
+ * + * Index name if the partition was generated for an index read. + *+ * + *
optional string index = 4;
+ *
+ * @return The bytes for index.
+ */
+ com.google.protobuf.ByteString getIndexBytes();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java
new file mode 100644
index 00000000000..1338d97cb87
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CancelOperationAction.java
@@ -0,0 +1,624 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CancelOperationAction} + */ +public final class CancelOperationAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CancelOperationAction) + CancelOperationActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CancelOperationAction.newBuilder() to construct. + private CancelOperationAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CancelOperationAction() { + operation_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelOperationAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CancelOperationAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CancelOperationAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CancelOperationAction.class, + com.google.spanner.executor.v1.CancelOperationAction.Builder.class); + } + + public static final int OPERATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object operation_ = ""; + /** + * + * + *
+ * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @return The operation.
+ */
+ @java.lang.Override
+ public java.lang.String getOperation() {
+ java.lang.Object ref = operation_;
+ 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();
+ operation_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @return The bytes for operation.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOperationBytes() {
+ java.lang.Object ref = operation_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ operation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, operation_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(operation_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, operation_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CancelOperationAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CancelOperationAction other =
+ (com.google.spanner.executor.v1.CancelOperationAction) obj;
+
+ if (!getOperation().equals(other.getOperation())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + OPERATION_FIELD_NUMBER;
+ hash = (53 * hash) + getOperation().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction 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.spanner.executor.v1.CancelOperationAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction 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.spanner.executor.v1.CancelOperationAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction 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.spanner.executor.v1.CancelOperationAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction 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.spanner.executor.v1.CancelOperationAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that cancels an operation. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CancelOperationAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @return The operation.
+ */
+ public java.lang.String getOperation() {
+ java.lang.Object ref = operation_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ operation_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @return The bytes for operation.
+ */
+ public com.google.protobuf.ByteString getOperationBytes() {
+ java.lang.Object ref = operation_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ operation_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @param value The operation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOperation(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ operation_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOperation() {
+ operation_ = getDefaultInstance().getOperation();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @param value The bytes for operation to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOperationBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ operation_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CancelOperationAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CancelOperationAction)
+ private static final com.google.spanner.executor.v1.CancelOperationAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CancelOperationAction();
+ }
+
+ public static com.google.spanner.executor.v1.CancelOperationAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @return The operation.
+ */
+ java.lang.String getOperation();
+ /**
+ *
+ *
+ * + * The name of the operation resource to be cancelled. + *+ * + *
string operation = 1;
+ *
+ * @return The bytes for operation.
+ */
+ com.google.protobuf.ByteString getOperationBytes();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java
new file mode 100644
index 00000000000..4dc95858445
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChangeStreamRecord.java
@@ -0,0 +1,1413 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Raw ChangeStream records. + * Encodes one of: DataChangeRecord, HeartbeatRecord, ChildPartitionsRecord + * returned from the ChangeStream API. + *+ * + * Protobuf type {@code google.spanner.executor.v1.ChangeStreamRecord} + */ +public final class ChangeStreamRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ChangeStreamRecord) + ChangeStreamRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeStreamRecord.newBuilder() to construct. + private ChangeStreamRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ChangeStreamRecord() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeStreamRecord(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_ChangeStreamRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_ChangeStreamRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.ChangeStreamRecord.class, + com.google.spanner.executor.v1.ChangeStreamRecord.Builder.class); + } + + private int recordCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object record_; + + public enum RecordCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DATA_CHANGE(1), + CHILD_PARTITION(2), + HEARTBEAT(3), + RECORD_NOT_SET(0); + private final int value; + + private RecordCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RecordCase valueOf(int value) { + return forNumber(value); + } + + public static RecordCase forNumber(int value) { + switch (value) { + case 1: + return DATA_CHANGE; + case 2: + return CHILD_PARTITION; + case 3: + return HEARTBEAT; + case 0: + return RECORD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public RecordCase getRecordCase() { + return RecordCase.forNumber(recordCase_); + } + + public static final int DATA_CHANGE_FIELD_NUMBER = 1; + /** + * + * + *
+ * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ *
+ * @return Whether the dataChange field is set.
+ */
+ @java.lang.Override
+ public boolean hasDataChange() {
+ return recordCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ *
+ * @return The dataChange.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DataChangeRecord getDataChange() {
+ if (recordCase_ == 1) {
+ return (com.google.spanner.executor.v1.DataChangeRecord) record_;
+ }
+ return com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DataChangeRecordOrBuilder getDataChangeOrBuilder() {
+ if (recordCase_ == 1) {
+ return (com.google.spanner.executor.v1.DataChangeRecord) record_;
+ }
+ return com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance();
+ }
+
+ public static final int CHILD_PARTITION_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ *
+ * @return Whether the childPartition field is set.
+ */
+ @java.lang.Override
+ public boolean hasChildPartition() {
+ return recordCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ *
+ * @return The childPartition.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ChildPartitionsRecord getChildPartition() {
+ if (recordCase_ == 2) {
+ return (com.google.spanner.executor.v1.ChildPartitionsRecord) record_;
+ }
+ return com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder
+ getChildPartitionOrBuilder() {
+ if (recordCase_ == 2) {
+ return (com.google.spanner.executor.v1.ChildPartitionsRecord) record_;
+ }
+ return com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance();
+ }
+
+ public static final int HEARTBEAT_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ *
+ * @return Whether the heartbeat field is set.
+ */
+ @java.lang.Override
+ public boolean hasHeartbeat() {
+ return recordCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ *
+ * @return The heartbeat.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.HeartbeatRecord getHeartbeat() {
+ if (recordCase_ == 3) {
+ return (com.google.spanner.executor.v1.HeartbeatRecord) record_;
+ }
+ return com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance();
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.HeartbeatRecordOrBuilder getHeartbeatOrBuilder() {
+ if (recordCase_ == 3) {
+ return (com.google.spanner.executor.v1.HeartbeatRecord) record_;
+ }
+ return com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance();
+ }
+
+ 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 (recordCase_ == 1) {
+ output.writeMessage(1, (com.google.spanner.executor.v1.DataChangeRecord) record_);
+ }
+ if (recordCase_ == 2) {
+ output.writeMessage(2, (com.google.spanner.executor.v1.ChildPartitionsRecord) record_);
+ }
+ if (recordCase_ == 3) {
+ output.writeMessage(3, (com.google.spanner.executor.v1.HeartbeatRecord) record_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (recordCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, (com.google.spanner.executor.v1.DataChangeRecord) record_);
+ }
+ if (recordCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, (com.google.spanner.executor.v1.ChildPartitionsRecord) record_);
+ }
+ if (recordCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 3, (com.google.spanner.executor.v1.HeartbeatRecord) record_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.ChangeStreamRecord)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.ChangeStreamRecord other =
+ (com.google.spanner.executor.v1.ChangeStreamRecord) obj;
+
+ if (!getRecordCase().equals(other.getRecordCase())) return false;
+ switch (recordCase_) {
+ case 1:
+ if (!getDataChange().equals(other.getDataChange())) return false;
+ break;
+ case 2:
+ if (!getChildPartition().equals(other.getChildPartition())) return false;
+ break;
+ case 3:
+ if (!getHeartbeat().equals(other.getHeartbeat())) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ switch (recordCase_) {
+ case 1:
+ hash = (37 * hash) + DATA_CHANGE_FIELD_NUMBER;
+ hash = (53 * hash) + getDataChange().hashCode();
+ break;
+ case 2:
+ hash = (37 * hash) + CHILD_PARTITION_FIELD_NUMBER;
+ hash = (53 * hash) + getChildPartition().hashCode();
+ break;
+ case 3:
+ hash = (37 * hash) + HEARTBEAT_FIELD_NUMBER;
+ hash = (53 * hash) + getHeartbeat().hashCode();
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord 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.spanner.executor.v1.ChangeStreamRecord parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord 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.spanner.executor.v1.ChangeStreamRecord parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord 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.spanner.executor.v1.ChangeStreamRecord parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord 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.spanner.executor.v1.ChangeStreamRecord 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;
+ }
+ /**
+ *
+ *
+ * + * Raw ChangeStream records. + * Encodes one of: DataChangeRecord, HeartbeatRecord, ChildPartitionsRecord + * returned from the ChangeStream API. + *+ * + * Protobuf type {@code google.spanner.executor.v1.ChangeStreamRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ *
+ * @return Whether the dataChange field is set.
+ */
+ @java.lang.Override
+ public boolean hasDataChange() {
+ return recordCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ *
+ * @return The dataChange.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DataChangeRecord getDataChange() {
+ if (dataChangeBuilder_ == null) {
+ if (recordCase_ == 1) {
+ return (com.google.spanner.executor.v1.DataChangeRecord) record_;
+ }
+ return com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance();
+ } else {
+ if (recordCase_ == 1) {
+ return dataChangeBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ public Builder setDataChange(com.google.spanner.executor.v1.DataChangeRecord value) {
+ if (dataChangeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ record_ = value;
+ onChanged();
+ } else {
+ dataChangeBuilder_.setMessage(value);
+ }
+ recordCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ public Builder setDataChange(
+ com.google.spanner.executor.v1.DataChangeRecord.Builder builderForValue) {
+ if (dataChangeBuilder_ == null) {
+ record_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataChangeBuilder_.setMessage(builderForValue.build());
+ }
+ recordCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ public Builder mergeDataChange(com.google.spanner.executor.v1.DataChangeRecord value) {
+ if (dataChangeBuilder_ == null) {
+ if (recordCase_ == 1
+ && record_ != com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance()) {
+ record_ =
+ com.google.spanner.executor.v1.DataChangeRecord.newBuilder(
+ (com.google.spanner.executor.v1.DataChangeRecord) record_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ record_ = value;
+ }
+ onChanged();
+ } else {
+ if (recordCase_ == 1) {
+ dataChangeBuilder_.mergeFrom(value);
+ } else {
+ dataChangeBuilder_.setMessage(value);
+ }
+ }
+ recordCase_ = 1;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ public Builder clearDataChange() {
+ if (dataChangeBuilder_ == null) {
+ if (recordCase_ == 1) {
+ recordCase_ = 0;
+ record_ = null;
+ onChanged();
+ }
+ } else {
+ if (recordCase_ == 1) {
+ recordCase_ = 0;
+ record_ = null;
+ }
+ dataChangeBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.Builder getDataChangeBuilder() {
+ return getDataChangeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DataChangeRecordOrBuilder getDataChangeOrBuilder() {
+ if ((recordCase_ == 1) && (dataChangeBuilder_ != null)) {
+ return dataChangeBuilder_.getMessageOrBuilder();
+ } else {
+ if (recordCase_ == 1) {
+ return (com.google.spanner.executor.v1.DataChangeRecord) record_;
+ }
+ return com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DataChangeRecord,
+ com.google.spanner.executor.v1.DataChangeRecord.Builder,
+ com.google.spanner.executor.v1.DataChangeRecordOrBuilder>
+ getDataChangeFieldBuilder() {
+ if (dataChangeBuilder_ == null) {
+ if (!(recordCase_ == 1)) {
+ record_ = com.google.spanner.executor.v1.DataChangeRecord.getDefaultInstance();
+ }
+ dataChangeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.DataChangeRecord,
+ com.google.spanner.executor.v1.DataChangeRecord.Builder,
+ com.google.spanner.executor.v1.DataChangeRecordOrBuilder>(
+ (com.google.spanner.executor.v1.DataChangeRecord) record_,
+ getParentForChildren(),
+ isClean());
+ record_ = null;
+ }
+ recordCase_ = 1;
+ onChanged();
+ return dataChangeBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ChildPartitionsRecord,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.Builder,
+ com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder>
+ childPartitionBuilder_;
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ *
+ * @return Whether the childPartition field is set.
+ */
+ @java.lang.Override
+ public boolean hasChildPartition() {
+ return recordCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ *
+ * @return The childPartition.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ChildPartitionsRecord getChildPartition() {
+ if (childPartitionBuilder_ == null) {
+ if (recordCase_ == 2) {
+ return (com.google.spanner.executor.v1.ChildPartitionsRecord) record_;
+ }
+ return com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance();
+ } else {
+ if (recordCase_ == 2) {
+ return childPartitionBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ public Builder setChildPartition(com.google.spanner.executor.v1.ChildPartitionsRecord value) {
+ if (childPartitionBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ record_ = value;
+ onChanged();
+ } else {
+ childPartitionBuilder_.setMessage(value);
+ }
+ recordCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ public Builder setChildPartition(
+ com.google.spanner.executor.v1.ChildPartitionsRecord.Builder builderForValue) {
+ if (childPartitionBuilder_ == null) {
+ record_ = builderForValue.build();
+ onChanged();
+ } else {
+ childPartitionBuilder_.setMessage(builderForValue.build());
+ }
+ recordCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ public Builder mergeChildPartition(com.google.spanner.executor.v1.ChildPartitionsRecord value) {
+ if (childPartitionBuilder_ == null) {
+ if (recordCase_ == 2
+ && record_
+ != com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance()) {
+ record_ =
+ com.google.spanner.executor.v1.ChildPartitionsRecord.newBuilder(
+ (com.google.spanner.executor.v1.ChildPartitionsRecord) record_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ record_ = value;
+ }
+ onChanged();
+ } else {
+ if (recordCase_ == 2) {
+ childPartitionBuilder_.mergeFrom(value);
+ } else {
+ childPartitionBuilder_.setMessage(value);
+ }
+ }
+ recordCase_ = 2;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ public Builder clearChildPartition() {
+ if (childPartitionBuilder_ == null) {
+ if (recordCase_ == 2) {
+ recordCase_ = 0;
+ record_ = null;
+ onChanged();
+ }
+ } else {
+ if (recordCase_ == 2) {
+ recordCase_ = 0;
+ record_ = null;
+ }
+ childPartitionBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ public com.google.spanner.executor.v1.ChildPartitionsRecord.Builder getChildPartitionBuilder() {
+ return getChildPartitionFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder
+ getChildPartitionOrBuilder() {
+ if ((recordCase_ == 2) && (childPartitionBuilder_ != null)) {
+ return childPartitionBuilder_.getMessageOrBuilder();
+ } else {
+ if (recordCase_ == 2) {
+ return (com.google.spanner.executor.v1.ChildPartitionsRecord) record_;
+ }
+ return com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ChildPartitionsRecord,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.Builder,
+ com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder>
+ getChildPartitionFieldBuilder() {
+ if (childPartitionBuilder_ == null) {
+ if (!(recordCase_ == 2)) {
+ record_ = com.google.spanner.executor.v1.ChildPartitionsRecord.getDefaultInstance();
+ }
+ childPartitionBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.ChildPartitionsRecord,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.Builder,
+ com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder>(
+ (com.google.spanner.executor.v1.ChildPartitionsRecord) record_,
+ getParentForChildren(),
+ isClean());
+ record_ = null;
+ }
+ recordCase_ = 2;
+ onChanged();
+ return childPartitionBuilder_;
+ }
+
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.HeartbeatRecord,
+ com.google.spanner.executor.v1.HeartbeatRecord.Builder,
+ com.google.spanner.executor.v1.HeartbeatRecordOrBuilder>
+ heartbeatBuilder_;
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ *
+ * @return Whether the heartbeat field is set.
+ */
+ @java.lang.Override
+ public boolean hasHeartbeat() {
+ return recordCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ *
+ * @return The heartbeat.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.HeartbeatRecord getHeartbeat() {
+ if (heartbeatBuilder_ == null) {
+ if (recordCase_ == 3) {
+ return (com.google.spanner.executor.v1.HeartbeatRecord) record_;
+ }
+ return com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance();
+ } else {
+ if (recordCase_ == 3) {
+ return heartbeatBuilder_.getMessage();
+ }
+ return com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ public Builder setHeartbeat(com.google.spanner.executor.v1.HeartbeatRecord value) {
+ if (heartbeatBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ record_ = value;
+ onChanged();
+ } else {
+ heartbeatBuilder_.setMessage(value);
+ }
+ recordCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ public Builder setHeartbeat(
+ com.google.spanner.executor.v1.HeartbeatRecord.Builder builderForValue) {
+ if (heartbeatBuilder_ == null) {
+ record_ = builderForValue.build();
+ onChanged();
+ } else {
+ heartbeatBuilder_.setMessage(builderForValue.build());
+ }
+ recordCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ public Builder mergeHeartbeat(com.google.spanner.executor.v1.HeartbeatRecord value) {
+ if (heartbeatBuilder_ == null) {
+ if (recordCase_ == 3
+ && record_ != com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance()) {
+ record_ =
+ com.google.spanner.executor.v1.HeartbeatRecord.newBuilder(
+ (com.google.spanner.executor.v1.HeartbeatRecord) record_)
+ .mergeFrom(value)
+ .buildPartial();
+ } else {
+ record_ = value;
+ }
+ onChanged();
+ } else {
+ if (recordCase_ == 3) {
+ heartbeatBuilder_.mergeFrom(value);
+ } else {
+ heartbeatBuilder_.setMessage(value);
+ }
+ }
+ recordCase_ = 3;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ public Builder clearHeartbeat() {
+ if (heartbeatBuilder_ == null) {
+ if (recordCase_ == 3) {
+ recordCase_ = 0;
+ record_ = null;
+ onChanged();
+ }
+ } else {
+ if (recordCase_ == 3) {
+ recordCase_ = 0;
+ record_ = null;
+ }
+ heartbeatBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ public com.google.spanner.executor.v1.HeartbeatRecord.Builder getHeartbeatBuilder() {
+ return getHeartbeatFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.HeartbeatRecordOrBuilder getHeartbeatOrBuilder() {
+ if ((recordCase_ == 3) && (heartbeatBuilder_ != null)) {
+ return heartbeatBuilder_.getMessageOrBuilder();
+ } else {
+ if (recordCase_ == 3) {
+ return (com.google.spanner.executor.v1.HeartbeatRecord) record_;
+ }
+ return com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance();
+ }
+ }
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.HeartbeatRecord,
+ com.google.spanner.executor.v1.HeartbeatRecord.Builder,
+ com.google.spanner.executor.v1.HeartbeatRecordOrBuilder>
+ getHeartbeatFieldBuilder() {
+ if (heartbeatBuilder_ == null) {
+ if (!(recordCase_ == 3)) {
+ record_ = com.google.spanner.executor.v1.HeartbeatRecord.getDefaultInstance();
+ }
+ heartbeatBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.HeartbeatRecord,
+ com.google.spanner.executor.v1.HeartbeatRecord.Builder,
+ com.google.spanner.executor.v1.HeartbeatRecordOrBuilder>(
+ (com.google.spanner.executor.v1.HeartbeatRecord) record_,
+ getParentForChildren(),
+ isClean());
+ record_ = null;
+ }
+ recordCase_ = 3;
+ onChanged();
+ return heartbeatBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ChangeStreamRecord)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ChangeStreamRecord)
+ private static final com.google.spanner.executor.v1.ChangeStreamRecord DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ChangeStreamRecord();
+ }
+
+ public static com.google.spanner.executor.v1.ChangeStreamRecord getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ *
+ * @return Whether the dataChange field is set.
+ */
+ boolean hasDataChange();
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ *
+ * @return The dataChange.
+ */
+ com.google.spanner.executor.v1.DataChangeRecord getDataChange();
+ /**
+ *
+ *
+ * + * Data change record. + *+ * + *
.google.spanner.executor.v1.DataChangeRecord data_change = 1;
+ */
+ com.google.spanner.executor.v1.DataChangeRecordOrBuilder getDataChangeOrBuilder();
+
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ *
+ * @return Whether the childPartition field is set.
+ */
+ boolean hasChildPartition();
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ *
+ * @return The childPartition.
+ */
+ com.google.spanner.executor.v1.ChildPartitionsRecord getChildPartition();
+ /**
+ *
+ *
+ * + * Child partitions record. + *+ * + *
.google.spanner.executor.v1.ChildPartitionsRecord child_partition = 2;
+ */
+ com.google.spanner.executor.v1.ChildPartitionsRecordOrBuilder getChildPartitionOrBuilder();
+
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ *
+ * @return Whether the heartbeat field is set.
+ */
+ boolean hasHeartbeat();
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ *
+ * @return The heartbeat.
+ */
+ com.google.spanner.executor.v1.HeartbeatRecord getHeartbeat();
+ /**
+ *
+ *
+ * + * Heartbeat record. + *+ * + *
.google.spanner.executor.v1.HeartbeatRecord heartbeat = 3;
+ */
+ com.google.spanner.executor.v1.HeartbeatRecordOrBuilder getHeartbeatOrBuilder();
+
+ com.google.spanner.executor.v1.ChangeStreamRecord.RecordCase getRecordCase();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java
new file mode 100644
index 00000000000..a4197d3585b
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ChildPartitionsRecord.java
@@ -0,0 +1,2473 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * ChangeStream child partition record. + *+ * + * Protobuf type {@code google.spanner.executor.v1.ChildPartitionsRecord} + */ +public final class ChildPartitionsRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ChildPartitionsRecord) + ChildPartitionsRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChildPartitionsRecord.newBuilder() to construct. + private ChildPartitionsRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ChildPartitionsRecord() { + recordSequence_ = ""; + childPartitions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChildPartitionsRecord(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_ChildPartitionsRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_ChildPartitionsRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.ChildPartitionsRecord.class, + com.google.spanner.executor.v1.ChildPartitionsRecord.Builder.class); + } + + public interface ChildPartitionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @return The token.
+ */
+ java.lang.String getToken();
+ /**
+ *
+ *
+ * + * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ com.google.protobuf.ByteString getTokenBytes();
+
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @return A list containing the parentPartitionTokens.
+ */
+ java.util.List+ * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @return The count of parentPartitionTokens.
+ */
+ int getParentPartitionTokensCount();
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The parentPartitionTokens at the given index.
+ */
+ java.lang.String getParentPartitionTokens(int index);
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the parentPartitionTokens at the given index.
+ */
+ com.google.protobuf.ByteString getParentPartitionTokensBytes(int index);
+ }
+ /**
+ *
+ *
+ * + * A single child partition. + *+ * + * Protobuf type {@code google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition} + */ + public static final class ChildPartition extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition) + ChildPartitionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChildPartition.newBuilder() to construct. + private ChildPartition(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ChildPartition() { + token_ = ""; + parentPartitionTokens_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChildPartition(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.class, + com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder.class); + } + + public static final int TOKEN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object token_ = ""; + /** + * + * + *
+ * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @return The token.
+ */
+ @java.lang.Override
+ public java.lang.String getToken() {
+ java.lang.Object ref = token_;
+ 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();
+ token_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTokenBytes() {
+ java.lang.Object ref = token_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ token_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PARENT_PARTITION_TOKENS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList parentPartitionTokens_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @return A list containing the parentPartitionTokens.
+ */
+ public com.google.protobuf.ProtocolStringList getParentPartitionTokensList() {
+ return parentPartitionTokens_;
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @return The count of parentPartitionTokens.
+ */
+ public int getParentPartitionTokensCount() {
+ return parentPartitionTokens_.size();
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The parentPartitionTokens at the given index.
+ */
+ public java.lang.String getParentPartitionTokens(int index) {
+ return parentPartitionTokens_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the parentPartitionTokens at the given index.
+ */
+ public com.google.protobuf.ByteString getParentPartitionTokensBytes(int index) {
+ return parentPartitionTokens_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, token_);
+ }
+ for (int i = 0; i < parentPartitionTokens_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(
+ output, 2, parentPartitionTokens_.getRaw(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(token_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, token_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < parentPartitionTokens_.size(); i++) {
+ dataSize += computeStringSizeNoTag(parentPartitionTokens_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getParentPartitionTokensList().size();
+ }
+ size += getUnknownFields().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.spanner.executor.v1.ChildPartitionsRecord.ChildPartition)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition other =
+ (com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition) obj;
+
+ if (!getToken().equals(other.getToken())) return false;
+ if (!getParentPartitionTokensList().equals(other.getParentPartitionTokensList()))
+ return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getToken().hashCode();
+ if (getParentPartitionTokensCount() > 0) {
+ hash = (37 * hash) + PARENT_PARTITION_TOKENS_FIELD_NUMBER;
+ hash = (53 * hash) + getParentPartitionTokensList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition 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.spanner.executor.v1.ChildPartitionsRecord.ChildPartition parseFrom(
+ byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition 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.spanner.executor.v1.ChildPartitionsRecord.ChildPartition
+ parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition
+ 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.spanner.executor.v1.ChildPartitionsRecord.ChildPartition parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition 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.spanner.executor.v1.ChildPartitionsRecord.ChildPartition 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;
+ }
+ /**
+ *
+ *
+ * + * A single child partition. + *+ * + * Protobuf type {@code google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @return The token.
+ */
+ public java.lang.String getToken() {
+ java.lang.Object ref = token_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ token_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @return The bytes for token.
+ */
+ public com.google.protobuf.ByteString getTokenBytes() {
+ java.lang.Object ref = token_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ token_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @param value The token to set.
+ * @return This builder for chaining.
+ */
+ public Builder setToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ token_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearToken() {
+ token_ = getDefaultInstance().getToken();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Partition token string used to identify the child partition in queries. + *+ * + *
string token = 1;
+ *
+ * @param value The bytes for token to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ token_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList parentPartitionTokens_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureParentPartitionTokensIsMutable() {
+ if (!parentPartitionTokens_.isModifiable()) {
+ parentPartitionTokens_ =
+ new com.google.protobuf.LazyStringArrayList(parentPartitionTokens_);
+ }
+ bitField0_ |= 0x00000002;
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @return A list containing the parentPartitionTokens.
+ */
+ public com.google.protobuf.ProtocolStringList getParentPartitionTokensList() {
+ parentPartitionTokens_.makeImmutable();
+ return parentPartitionTokens_;
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @return The count of parentPartitionTokens.
+ */
+ public int getParentPartitionTokensCount() {
+ return parentPartitionTokens_.size();
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param index The index of the element to return.
+ * @return The parentPartitionTokens at the given index.
+ */
+ public java.lang.String getParentPartitionTokens(int index) {
+ return parentPartitionTokens_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the parentPartitionTokens at the given index.
+ */
+ public com.google.protobuf.ByteString getParentPartitionTokensBytes(int index) {
+ return parentPartitionTokens_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param index The index to set the value at.
+ * @param value The parentPartitionTokens to set.
+ * @return This builder for chaining.
+ */
+ public Builder setParentPartitionTokens(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParentPartitionTokensIsMutable();
+ parentPartitionTokens_.set(index, value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param value The parentPartitionTokens to add.
+ * @return This builder for chaining.
+ */
+ public Builder addParentPartitionTokens(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureParentPartitionTokensIsMutable();
+ parentPartitionTokens_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param values The parentPartitionTokens to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllParentPartitionTokens(java.lang.Iterable+ * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearParentPartitionTokens() {
+ parentPartitionTokens_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Parent partition tokens of this child partition. + *+ * + *
repeated string parent_partition_tokens = 2;
+ *
+ * @param value The bytes of the parentPartitionTokens to add.
+ * @return This builder for chaining.
+ */
+ public Builder addParentPartitionTokensBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureParentPartitionTokensIsMutable();
+ parentPartitionTokens_.add(value);
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition)
+ private static final com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition();
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition
+ getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ *
+ * @return Whether the startTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasStartTime() {
+ return startTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ *
+ * @return The startTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getStartTime() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+
+ public static final int RECORD_SEQUENCE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object recordSequence_ = "";
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The recordSequence.
+ */
+ @java.lang.Override
+ public java.lang.String getRecordSequence() {
+ java.lang.Object ref = recordSequence_;
+ 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();
+ recordSequence_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The bytes for recordSequence.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRecordSequenceBytes() {
+ java.lang.Object ref = recordSequence_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ recordSequence_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHILD_PARTITIONS_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder>
+ getChildPartitionsOrBuilderList() {
+ return childPartitions_;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ @java.lang.Override
+ public int getChildPartitionsCount() {
+ return childPartitions_.size();
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getChildPartitions(
+ int index) {
+ return childPartitions_.get(index);
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder
+ getChildPartitionsOrBuilder(int index) {
+ return childPartitions_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (startTime_ != null) {
+ output.writeMessage(1, getStartTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recordSequence_);
+ }
+ for (int i = 0; i < childPartitions_.size(); i++) {
+ output.writeMessage(3, childPartitions_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (startTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recordSequence_);
+ }
+ for (int i = 0; i < childPartitions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, childPartitions_.get(i));
+ }
+ size += getUnknownFields().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.spanner.executor.v1.ChildPartitionsRecord)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.ChildPartitionsRecord other =
+ (com.google.spanner.executor.v1.ChildPartitionsRecord) obj;
+
+ if (hasStartTime() != other.hasStartTime()) return false;
+ if (hasStartTime()) {
+ if (!getStartTime().equals(other.getStartTime())) return false;
+ }
+ if (!getRecordSequence().equals(other.getRecordSequence())) return false;
+ if (!getChildPartitionsList().equals(other.getChildPartitionsList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasStartTime()) {
+ hash = (37 * hash) + START_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getStartTime().hashCode();
+ }
+ hash = (37 * hash) + RECORD_SEQUENCE_FIELD_NUMBER;
+ hash = (53 * hash) + getRecordSequence().hashCode();
+ if (getChildPartitionsCount() > 0) {
+ hash = (37 * hash) + CHILD_PARTITIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getChildPartitionsList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord 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.spanner.executor.v1.ChildPartitionsRecord parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord 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.spanner.executor.v1.ChildPartitionsRecord parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord 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.spanner.executor.v1.ChildPartitionsRecord parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord 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.spanner.executor.v1.ChildPartitionsRecord 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;
+ }
+ /**
+ *
+ *
+ * + * ChangeStream child partition record. + *+ * + * Protobuf type {@code google.spanner.executor.v1.ChildPartitionsRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ *
+ * @return Whether the startTime field is set.
+ */
+ public boolean hasStartTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ *
+ * @return The startTime.
+ */
+ public com.google.protobuf.Timestamp getStartTime() {
+ if (startTimeBuilder_ == null) {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ } else {
+ return startTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ startTime_ = value;
+ } else {
+ startTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (startTimeBuilder_ == null) {
+ startTime_ = builderForValue.build();
+ } else {
+ startTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
+ if (startTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && startTime_ != null
+ && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getStartTimeBuilder().mergeFrom(value);
+ } else {
+ startTime_ = value;
+ }
+ } else {
+ startTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public Builder clearStartTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ startTime_ = null;
+ if (startTimeBuilder_ != null) {
+ startTimeBuilder_.dispose();
+ startTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getStartTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
+ if (startTimeBuilder_ != null) {
+ return startTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getStartTimeFieldBuilder() {
+ if (startTimeBuilder_ == null) {
+ startTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getStartTime(), getParentForChildren(), isClean());
+ startTime_ = null;
+ }
+ return startTimeBuilder_;
+ }
+
+ private java.lang.Object recordSequence_ = "";
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The recordSequence.
+ */
+ public java.lang.String getRecordSequence() {
+ java.lang.Object ref = recordSequence_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ recordSequence_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The bytes for recordSequence.
+ */
+ public com.google.protobuf.ByteString getRecordSequenceBytes() {
+ java.lang.Object ref = recordSequence_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ recordSequence_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @param value The recordSequence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordSequence(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ recordSequence_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordSequence() {
+ recordSequence_ = getDefaultInstance().getRecordSequence();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @param value The bytes for recordSequence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordSequenceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ recordSequence_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public java.util.List+ * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public int getChildPartitionsCount() {
+ if (childPartitionsBuilder_ == null) {
+ return childPartitions_.size();
+ } else {
+ return childPartitionsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getChildPartitions(
+ int index) {
+ if (childPartitionsBuilder_ == null) {
+ return childPartitions_.get(index);
+ } else {
+ return childPartitionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder setChildPartitions(
+ int index, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition value) {
+ if (childPartitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChildPartitionsIsMutable();
+ childPartitions_.set(index, value);
+ onChanged();
+ } else {
+ childPartitionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder setChildPartitions(
+ int index,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder
+ builderForValue) {
+ if (childPartitionsBuilder_ == null) {
+ ensureChildPartitionsIsMutable();
+ childPartitions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ childPartitionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder addChildPartitions(
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition value) {
+ if (childPartitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChildPartitionsIsMutable();
+ childPartitions_.add(value);
+ onChanged();
+ } else {
+ childPartitionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder addChildPartitions(
+ int index, com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition value) {
+ if (childPartitionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureChildPartitionsIsMutable();
+ childPartitions_.add(index, value);
+ onChanged();
+ } else {
+ childPartitionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder addChildPartitions(
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder
+ builderForValue) {
+ if (childPartitionsBuilder_ == null) {
+ ensureChildPartitionsIsMutable();
+ childPartitions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ childPartitionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder addChildPartitions(
+ int index,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder
+ builderForValue) {
+ if (childPartitionsBuilder_ == null) {
+ ensureChildPartitionsIsMutable();
+ childPartitions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ childPartitionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder addAllChildPartitions(
+ java.lang.Iterable<
+ ? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition>
+ values) {
+ if (childPartitionsBuilder_ == null) {
+ ensureChildPartitionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childPartitions_);
+ onChanged();
+ } else {
+ childPartitionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder clearChildPartitions() {
+ if (childPartitionsBuilder_ == null) {
+ childPartitions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ } else {
+ childPartitionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public Builder removeChildPartitions(int index) {
+ if (childPartitionsBuilder_ == null) {
+ ensureChildPartitionsIsMutable();
+ childPartitions_.remove(index);
+ onChanged();
+ } else {
+ childPartitionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder
+ getChildPartitionsBuilder(int index) {
+ return getChildPartitionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder
+ getChildPartitionsOrBuilder(int index) {
+ if (childPartitionsBuilder_ == null) {
+ return childPartitions_.get(index);
+ } else {
+ return childPartitionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder>
+ getChildPartitionsOrBuilderList() {
+ if (childPartitionsBuilder_ != null) {
+ return childPartitionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(childPartitions_);
+ }
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder
+ addChildPartitionsBuilder() {
+ return getChildPartitionsFieldBuilder()
+ .addBuilder(
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder
+ addChildPartitionsBuilder(int index) {
+ return getChildPartitionsFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition
+ .getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ public java.util.List<
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder>
+ getChildPartitionsBuilderList() {
+ return getChildPartitionsFieldBuilder().getBuilderList();
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder>
+ getChildPartitionsFieldBuilder() {
+ if (childPartitionsBuilder_ == null) {
+ childPartitionsBuilder_ =
+ new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition.Builder,
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder>(
+ childPartitions_,
+ ((bitField0_ & 0x00000004) != 0),
+ getParentForChildren(),
+ isClean());
+ childPartitions_ = null;
+ }
+ return childPartitionsBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ChildPartitionsRecord)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ChildPartitionsRecord)
+ private static final com.google.spanner.executor.v1.ChildPartitionsRecord DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ChildPartitionsRecord();
+ }
+
+ public static com.google.spanner.executor.v1.ChildPartitionsRecord getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ *
+ * @return Whether the startTime field is set.
+ */
+ boolean hasStartTime();
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ *
+ * @return The startTime.
+ */
+ com.google.protobuf.Timestamp getStartTime();
+ /**
+ *
+ *
+ * + * Data change records returned from child partitions in this child partitions + * record will have a commit timestamp greater than or equal to start_time. + *+ * + *
.google.protobuf.Timestamp start_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The recordSequence.
+ */
+ java.lang.String getRecordSequence();
+ /**
+ *
+ *
+ * + * A monotonically increasing sequence number that can be used to define the + * ordering of the child partitions record when there are multiple child + * partitions records returned with the same start_time in a particular + * partition. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The bytes for recordSequence.
+ */
+ com.google.protobuf.ByteString getRecordSequenceBytes();
+
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ java.util.List+ * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition getChildPartitions(int index);
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ int getChildPartitionsCount();
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ java.util.List<
+ ? extends com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder>
+ getChildPartitionsOrBuilderList();
+ /**
+ *
+ *
+ * + * A set of child partitions and their associated information. + *+ * + *
+ * repeated .google.spanner.executor.v1.ChildPartitionsRecord.ChildPartition child_partitions = 3;
+ *
+ */
+ com.google.spanner.executor.v1.ChildPartitionsRecord.ChildPartitionOrBuilder
+ getChildPartitionsOrBuilder(int index);
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java
new file mode 100644
index 00000000000..3620bf80b9c
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloseBatchTransactionAction.java
@@ -0,0 +1,551 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Closes or cleans up the currently opened batch read-only transaction. + * + * Once a transaction is closed, the Executor can be disposed of or used to + * start start another transaction. Closing a batch transaction in one Executor + * doesn't affect the transaction's state in other Executors that also read from + * it. + * + * When a transaction is cleaned up, it becomes globally invalid. Cleaning up is + * optional, but recommended. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloseBatchTransactionAction} + */ +public final class CloseBatchTransactionAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CloseBatchTransactionAction) + CloseBatchTransactionActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloseBatchTransactionAction.newBuilder() to construct. + private CloseBatchTransactionAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloseBatchTransactionAction() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloseBatchTransactionAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CloseBatchTransactionAction.class, + com.google.spanner.executor.v1.CloseBatchTransactionAction.Builder.class); + } + + public static final int CLEANUP_FIELD_NUMBER = 1; + private boolean cleanup_ = false; + /** + * + * + *
+ * Indicates whether the transaction needs to be cleaned up. + *+ * + *
bool cleanup = 1;
+ *
+ * @return The cleanup.
+ */
+ @java.lang.Override
+ public boolean getCleanup() {
+ return cleanup_;
+ }
+
+ 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 (cleanup_ != false) {
+ output.writeBool(1, cleanup_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (cleanup_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, cleanup_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CloseBatchTransactionAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CloseBatchTransactionAction other =
+ (com.google.spanner.executor.v1.CloseBatchTransactionAction) obj;
+
+ if (getCleanup() != other.getCleanup()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CLEANUP_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCleanup());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction 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.spanner.executor.v1.CloseBatchTransactionAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction 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.spanner.executor.v1.CloseBatchTransactionAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction 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.spanner.executor.v1.CloseBatchTransactionAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction 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.spanner.executor.v1.CloseBatchTransactionAction 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;
+ }
+ /**
+ *
+ *
+ * + * Closes or cleans up the currently opened batch read-only transaction. + * + * Once a transaction is closed, the Executor can be disposed of or used to + * start start another transaction. Closing a batch transaction in one Executor + * doesn't affect the transaction's state in other Executors that also read from + * it. + * + * When a transaction is cleaned up, it becomes globally invalid. Cleaning up is + * optional, but recommended. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloseBatchTransactionAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Indicates whether the transaction needs to be cleaned up. + *+ * + *
bool cleanup = 1;
+ *
+ * @return The cleanup.
+ */
+ @java.lang.Override
+ public boolean getCleanup() {
+ return cleanup_;
+ }
+ /**
+ *
+ *
+ * + * Indicates whether the transaction needs to be cleaned up. + *+ * + *
bool cleanup = 1;
+ *
+ * @param value The cleanup to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCleanup(boolean value) {
+
+ cleanup_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates whether the transaction needs to be cleaned up. + *+ * + *
bool cleanup = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearCleanup() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ cleanup_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CloseBatchTransactionAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CloseBatchTransactionAction)
+ private static final com.google.spanner.executor.v1.CloseBatchTransactionAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CloseBatchTransactionAction();
+ }
+
+ public static com.google.spanner.executor.v1.CloseBatchTransactionAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Indicates whether the transaction needs to be cleaned up. + *+ * + *
bool cleanup = 1;
+ *
+ * @return The cleanup.
+ */
+ boolean getCleanup();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java
new file mode 100644
index 00000000000..c07e07e8ada
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudBackupResponse.java
@@ -0,0 +1,1891 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * CloudBackupResponse contains results returned by cloud backup related + * actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloudBackupResponse} + */ +public final class CloudBackupResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CloudBackupResponse) + CloudBackupResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudBackupResponse.newBuilder() to construct. + private CloudBackupResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudBackupResponse() { + listedBackups_ = java.util.Collections.emptyList(); + listedBackupOperations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudBackupResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloudBackupResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloudBackupResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CloudBackupResponse.class, + com.google.spanner.executor.v1.CloudBackupResponse.Builder.class); + } + + public static final int LISTED_BACKUPS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.spanner.admin.database.v1.BackupOrBuilder>
+ getListedBackupsOrBuilderList() {
+ return listedBackups_;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ @java.lang.Override
+ public int getListedBackupsCount() {
+ return listedBackups_.size();
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.Backup getListedBackups(int index) {
+ return listedBackups_.get(index);
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBuilder(int index) {
+ return listedBackups_.get(index);
+ }
+
+ public static final int LISTED_BACKUP_OPERATIONS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ @java.lang.Override
+ public java.util.List+ * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.longrunning.OperationOrBuilder>
+ getListedBackupOperationsOrBuilderList() {
+ return listedBackupOperations_;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ @java.lang.Override
+ public int getListedBackupOperationsCount() {
+ return listedBackupOperations_.size();
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ @java.lang.Override
+ public com.google.longrunning.Operation getListedBackupOperations(int index) {
+ return listedBackupOperations_.get(index);
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ @java.lang.Override
+ public com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuilder(int index) {
+ return listedBackupOperations_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+
+ public static final int BACKUP_FIELD_NUMBER = 4;
+ private com.google.spanner.admin.database.v1.Backup backup_;
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ *
+ * @return Whether the backup field is set.
+ */
+ @java.lang.Override
+ public boolean hasBackup() {
+ return backup_ != null;
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ *
+ * @return The backup.
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.Backup getBackup() {
+ return backup_ == null
+ ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance()
+ : backup_;
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() {
+ return backup_ == null
+ ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance()
+ : backup_;
+ }
+
+ 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 < listedBackups_.size(); i++) {
+ output.writeMessage(1, listedBackups_.get(i));
+ }
+ for (int i = 0; i < listedBackupOperations_.size(); i++) {
+ output.writeMessage(2, listedBackupOperations_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_);
+ }
+ if (backup_ != null) {
+ output.writeMessage(4, getBackup());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < listedBackups_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listedBackups_.get(i));
+ }
+ for (int i = 0; i < listedBackupOperations_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, listedBackupOperations_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_);
+ }
+ if (backup_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getBackup());
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CloudBackupResponse)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CloudBackupResponse other =
+ (com.google.spanner.executor.v1.CloudBackupResponse) obj;
+
+ if (!getListedBackupsList().equals(other.getListedBackupsList())) return false;
+ if (!getListedBackupOperationsList().equals(other.getListedBackupOperationsList()))
+ return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (hasBackup() != other.hasBackup()) return false;
+ if (hasBackup()) {
+ if (!getBackup().equals(other.getBackup())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getListedBackupsCount() > 0) {
+ hash = (37 * hash) + LISTED_BACKUPS_FIELD_NUMBER;
+ hash = (53 * hash) + getListedBackupsList().hashCode();
+ }
+ if (getListedBackupOperationsCount() > 0) {
+ hash = (37 * hash) + LISTED_BACKUP_OPERATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getListedBackupOperationsList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ if (hasBackup()) {
+ hash = (37 * hash) + BACKUP_FIELD_NUMBER;
+ hash = (53 * hash) + getBackup().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse 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.spanner.executor.v1.CloudBackupResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse 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.spanner.executor.v1.CloudBackupResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse 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.spanner.executor.v1.CloudBackupResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse 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.spanner.executor.v1.CloudBackupResponse 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;
+ }
+ /**
+ *
+ *
+ * + * CloudBackupResponse contains results returned by cloud backup related + * actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloudBackupResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public java.util.List+ * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public int getListedBackupsCount() {
+ if (listedBackupsBuilder_ == null) {
+ return listedBackups_.size();
+ } else {
+ return listedBackupsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public com.google.spanner.admin.database.v1.Backup getListedBackups(int index) {
+ if (listedBackupsBuilder_ == null) {
+ return listedBackups_.get(index);
+ } else {
+ return listedBackupsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder setListedBackups(int index, com.google.spanner.admin.database.v1.Backup value) {
+ if (listedBackupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedBackupsIsMutable();
+ listedBackups_.set(index, value);
+ onChanged();
+ } else {
+ listedBackupsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder setListedBackups(
+ int index, com.google.spanner.admin.database.v1.Backup.Builder builderForValue) {
+ if (listedBackupsBuilder_ == null) {
+ ensureListedBackupsIsMutable();
+ listedBackups_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedBackupsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder addListedBackups(com.google.spanner.admin.database.v1.Backup value) {
+ if (listedBackupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedBackupsIsMutable();
+ listedBackups_.add(value);
+ onChanged();
+ } else {
+ listedBackupsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder addListedBackups(int index, com.google.spanner.admin.database.v1.Backup value) {
+ if (listedBackupsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedBackupsIsMutable();
+ listedBackups_.add(index, value);
+ onChanged();
+ } else {
+ listedBackupsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder addListedBackups(
+ com.google.spanner.admin.database.v1.Backup.Builder builderForValue) {
+ if (listedBackupsBuilder_ == null) {
+ ensureListedBackupsIsMutable();
+ listedBackups_.add(builderForValue.build());
+ onChanged();
+ } else {
+ listedBackupsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder addListedBackups(
+ int index, com.google.spanner.admin.database.v1.Backup.Builder builderForValue) {
+ if (listedBackupsBuilder_ == null) {
+ ensureListedBackupsIsMutable();
+ listedBackups_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedBackupsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder addAllListedBackups(
+ java.lang.Iterable extends com.google.spanner.admin.database.v1.Backup> values) {
+ if (listedBackupsBuilder_ == null) {
+ ensureListedBackupsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedBackups_);
+ onChanged();
+ } else {
+ listedBackupsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder clearListedBackups() {
+ if (listedBackupsBuilder_ == null) {
+ listedBackups_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ listedBackupsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public Builder removeListedBackups(int index) {
+ if (listedBackupsBuilder_ == null) {
+ ensureListedBackupsIsMutable();
+ listedBackups_.remove(index);
+ onChanged();
+ } else {
+ listedBackupsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public com.google.spanner.admin.database.v1.Backup.Builder getListedBackupsBuilder(int index) {
+ return getListedBackupsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBuilder(
+ int index) {
+ if (listedBackupsBuilder_ == null) {
+ return listedBackups_.get(index);
+ } else {
+ return listedBackupsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public java.util.List extends com.google.spanner.admin.database.v1.BackupOrBuilder>
+ getListedBackupsOrBuilderList() {
+ if (listedBackupsBuilder_ != null) {
+ return listedBackupsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(listedBackups_);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public com.google.spanner.admin.database.v1.Backup.Builder addListedBackupsBuilder() {
+ return getListedBackupsFieldBuilder()
+ .addBuilder(com.google.spanner.admin.database.v1.Backup.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public com.google.spanner.admin.database.v1.Backup.Builder addListedBackupsBuilder(int index) {
+ return getListedBackupsFieldBuilder()
+ .addBuilder(index, com.google.spanner.admin.database.v1.Backup.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ public java.util.List+ * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public java.util.List+ * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public int getListedBackupOperationsCount() {
+ if (listedBackupOperationsBuilder_ == null) {
+ return listedBackupOperations_.size();
+ } else {
+ return listedBackupOperationsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public com.google.longrunning.Operation getListedBackupOperations(int index) {
+ if (listedBackupOperationsBuilder_ == null) {
+ return listedBackupOperations_.get(index);
+ } else {
+ return listedBackupOperationsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder setListedBackupOperations(int index, com.google.longrunning.Operation value) {
+ if (listedBackupOperationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedBackupOperationsIsMutable();
+ listedBackupOperations_.set(index, value);
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder setListedBackupOperations(
+ int index, com.google.longrunning.Operation.Builder builderForValue) {
+ if (listedBackupOperationsBuilder_ == null) {
+ ensureListedBackupOperationsIsMutable();
+ listedBackupOperations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder addListedBackupOperations(com.google.longrunning.Operation value) {
+ if (listedBackupOperationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedBackupOperationsIsMutable();
+ listedBackupOperations_.add(value);
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder addListedBackupOperations(int index, com.google.longrunning.Operation value) {
+ if (listedBackupOperationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedBackupOperationsIsMutable();
+ listedBackupOperations_.add(index, value);
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder addListedBackupOperations(
+ com.google.longrunning.Operation.Builder builderForValue) {
+ if (listedBackupOperationsBuilder_ == null) {
+ ensureListedBackupOperationsIsMutable();
+ listedBackupOperations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder addListedBackupOperations(
+ int index, com.google.longrunning.Operation.Builder builderForValue) {
+ if (listedBackupOperationsBuilder_ == null) {
+ ensureListedBackupOperationsIsMutable();
+ listedBackupOperations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder addAllListedBackupOperations(
+ java.lang.Iterable extends com.google.longrunning.Operation> values) {
+ if (listedBackupOperationsBuilder_ == null) {
+ ensureListedBackupOperationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedBackupOperations_);
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder clearListedBackupOperations() {
+ if (listedBackupOperationsBuilder_ == null) {
+ listedBackupOperations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public Builder removeListedBackupOperations(int index) {
+ if (listedBackupOperationsBuilder_ == null) {
+ ensureListedBackupOperationsIsMutable();
+ listedBackupOperations_.remove(index);
+ onChanged();
+ } else {
+ listedBackupOperationsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public com.google.longrunning.Operation.Builder getListedBackupOperationsBuilder(int index) {
+ return getListedBackupOperationsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuilder(int index) {
+ if (listedBackupOperationsBuilder_ == null) {
+ return listedBackupOperations_.get(index);
+ } else {
+ return listedBackupOperationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public java.util.List extends com.google.longrunning.OperationOrBuilder>
+ getListedBackupOperationsOrBuilderList() {
+ if (listedBackupOperationsBuilder_ != null) {
+ return listedBackupOperationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(listedBackupOperations_);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public com.google.longrunning.Operation.Builder addListedBackupOperationsBuilder() {
+ return getListedBackupOperationsFieldBuilder()
+ .addBuilder(com.google.longrunning.Operation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public com.google.longrunning.Operation.Builder addListedBackupOperationsBuilder(int index) {
+ return getListedBackupOperationsFieldBuilder()
+ .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ public java.util.List+ * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The nextPageToken.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nextPageToken_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ nextPageToken_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.spanner.admin.database.v1.Backup backup_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.Backup,
+ com.google.spanner.admin.database.v1.Backup.Builder,
+ com.google.spanner.admin.database.v1.BackupOrBuilder>
+ backupBuilder_;
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ *
+ * @return Whether the backup field is set.
+ */
+ public boolean hasBackup() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ *
+ * @return The backup.
+ */
+ public com.google.spanner.admin.database.v1.Backup getBackup() {
+ if (backupBuilder_ == null) {
+ return backup_ == null
+ ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance()
+ : backup_;
+ } else {
+ return backupBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ public Builder setBackup(com.google.spanner.admin.database.v1.Backup value) {
+ if (backupBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ backup_ = value;
+ } else {
+ backupBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ public Builder setBackup(com.google.spanner.admin.database.v1.Backup.Builder builderForValue) {
+ if (backupBuilder_ == null) {
+ backup_ = builderForValue.build();
+ } else {
+ backupBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ public Builder mergeBackup(com.google.spanner.admin.database.v1.Backup value) {
+ if (backupBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && backup_ != null
+ && backup_ != com.google.spanner.admin.database.v1.Backup.getDefaultInstance()) {
+ getBackupBuilder().mergeFrom(value);
+ } else {
+ backup_ = value;
+ }
+ } else {
+ backupBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ public Builder clearBackup() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ backup_ = null;
+ if (backupBuilder_ != null) {
+ backupBuilder_.dispose();
+ backupBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ public com.google.spanner.admin.database.v1.Backup.Builder getBackupBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getBackupFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ public com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder() {
+ if (backupBuilder_ != null) {
+ return backupBuilder_.getMessageOrBuilder();
+ } else {
+ return backup_ == null
+ ? com.google.spanner.admin.database.v1.Backup.getDefaultInstance()
+ : backup_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.Backup,
+ com.google.spanner.admin.database.v1.Backup.Builder,
+ com.google.spanner.admin.database.v1.BackupOrBuilder>
+ getBackupFieldBuilder() {
+ if (backupBuilder_ == null) {
+ backupBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.Backup,
+ com.google.spanner.admin.database.v1.Backup.Builder,
+ com.google.spanner.admin.database.v1.BackupOrBuilder>(
+ getBackup(), getParentForChildren(), isClean());
+ backup_ = null;
+ }
+ return backupBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CloudBackupResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CloudBackupResponse)
+ private static final com.google.spanner.executor.v1.CloudBackupResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CloudBackupResponse();
+ }
+
+ public static com.google.spanner.executor.v1.CloudBackupResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ java.util.List+ * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ com.google.spanner.admin.database.v1.Backup getListedBackups(int index);
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ int getListedBackupsCount();
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ java.util.List extends com.google.spanner.admin.database.v1.BackupOrBuilder>
+ getListedBackupsOrBuilderList();
+ /**
+ *
+ *
+ * + * List of backups returned by ListCloudBackupsAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Backup listed_backups = 1;
+ */
+ com.google.spanner.admin.database.v1.BackupOrBuilder getListedBackupsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ java.util.List+ * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ com.google.longrunning.Operation getListedBackupOperations(int index);
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ int getListedBackupOperationsCount();
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ java.util.List extends com.google.longrunning.OperationOrBuilder>
+ getListedBackupOperationsOrBuilderList();
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudBackupOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_backup_operations = 2;
+ */
+ com.google.longrunning.OperationOrBuilder getListedBackupOperationsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ *
+ * @return Whether the backup field is set.
+ */
+ boolean hasBackup();
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ *
+ * @return The backup.
+ */
+ com.google.spanner.admin.database.v1.Backup getBackup();
+ /**
+ *
+ *
+ * + * Backup returned by GetCloudBackupAction/UpdateCloudBackupAction. + *+ * + *
.google.spanner.admin.database.v1.Backup backup = 4;
+ */
+ com.google.spanner.admin.database.v1.BackupOrBuilder getBackupOrBuilder();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java
new file mode 100644
index 00000000000..c3032219788
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudDatabaseResponse.java
@@ -0,0 +1,1900 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * CloudDatabaseResponse contains results returned by cloud database related + * actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloudDatabaseResponse} + */ +public final class CloudDatabaseResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CloudDatabaseResponse) + CloudDatabaseResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudDatabaseResponse.newBuilder() to construct. + private CloudDatabaseResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudDatabaseResponse() { + listedDatabases_ = java.util.Collections.emptyList(); + listedDatabaseOperations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudDatabaseResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloudDatabaseResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloudDatabaseResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CloudDatabaseResponse.class, + com.google.spanner.executor.v1.CloudDatabaseResponse.Builder.class); + } + + public static final int LISTED_DATABASES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.spanner.admin.database.v1.DatabaseOrBuilder>
+ getListedDatabasesOrBuilderList() {
+ return listedDatabases_;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ @java.lang.Override
+ public int getListedDatabasesCount() {
+ return listedDatabases_.size();
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.Database getListedDatabases(int index) {
+ return listedDatabases_.get(index);
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabasesOrBuilder(
+ int index) {
+ return listedDatabases_.get(index);
+ }
+
+ public static final int LISTED_DATABASE_OPERATIONS_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ @java.lang.Override
+ public java.util.List+ * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.longrunning.OperationOrBuilder>
+ getListedDatabaseOperationsOrBuilderList() {
+ return listedDatabaseOperations_;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ @java.lang.Override
+ public int getListedDatabaseOperationsCount() {
+ return listedDatabaseOperations_.size();
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ @java.lang.Override
+ public com.google.longrunning.Operation getListedDatabaseOperations(int index) {
+ return listedDatabaseOperations_.get(index);
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ @java.lang.Override
+ public com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBuilder(int index) {
+ return listedDatabaseOperations_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+
+ public static final int DATABASE_FIELD_NUMBER = 4;
+ private com.google.spanner.admin.database.v1.Database database_;
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ *
+ * @return Whether the database field is set.
+ */
+ @java.lang.Override
+ public boolean hasDatabase() {
+ return database_ != null;
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ *
+ * @return The database.
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.Database getDatabase() {
+ return database_ == null
+ ? com.google.spanner.admin.database.v1.Database.getDefaultInstance()
+ : database_;
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuilder() {
+ return database_ == null
+ ? com.google.spanner.admin.database.v1.Database.getDefaultInstance()
+ : database_;
+ }
+
+ 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 < listedDatabases_.size(); i++) {
+ output.writeMessage(1, listedDatabases_.get(i));
+ }
+ for (int i = 0; i < listedDatabaseOperations_.size(); i++) {
+ output.writeMessage(2, listedDatabaseOperations_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, nextPageToken_);
+ }
+ if (database_ != null) {
+ output.writeMessage(4, getDatabase());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < listedDatabases_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listedDatabases_.get(i));
+ }
+ for (int i = 0; i < listedDatabaseOperations_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 2, listedDatabaseOperations_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, nextPageToken_);
+ }
+ if (database_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getDatabase());
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CloudDatabaseResponse)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CloudDatabaseResponse other =
+ (com.google.spanner.executor.v1.CloudDatabaseResponse) obj;
+
+ if (!getListedDatabasesList().equals(other.getListedDatabasesList())) return false;
+ if (!getListedDatabaseOperationsList().equals(other.getListedDatabaseOperationsList()))
+ return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (hasDatabase() != other.hasDatabase()) return false;
+ if (hasDatabase()) {
+ if (!getDatabase().equals(other.getDatabase())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getListedDatabasesCount() > 0) {
+ hash = (37 * hash) + LISTED_DATABASES_FIELD_NUMBER;
+ hash = (53 * hash) + getListedDatabasesList().hashCode();
+ }
+ if (getListedDatabaseOperationsCount() > 0) {
+ hash = (37 * hash) + LISTED_DATABASE_OPERATIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getListedDatabaseOperationsList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ if (hasDatabase()) {
+ hash = (37 * hash) + DATABASE_FIELD_NUMBER;
+ hash = (53 * hash) + getDatabase().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse 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.spanner.executor.v1.CloudDatabaseResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse 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.spanner.executor.v1.CloudDatabaseResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse 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.spanner.executor.v1.CloudDatabaseResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse 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.spanner.executor.v1.CloudDatabaseResponse 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;
+ }
+ /**
+ *
+ *
+ * + * CloudDatabaseResponse contains results returned by cloud database related + * actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloudDatabaseResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public java.util.List+ * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public int getListedDatabasesCount() {
+ if (listedDatabasesBuilder_ == null) {
+ return listedDatabases_.size();
+ } else {
+ return listedDatabasesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public com.google.spanner.admin.database.v1.Database getListedDatabases(int index) {
+ if (listedDatabasesBuilder_ == null) {
+ return listedDatabases_.get(index);
+ } else {
+ return listedDatabasesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder setListedDatabases(
+ int index, com.google.spanner.admin.database.v1.Database value) {
+ if (listedDatabasesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedDatabasesIsMutable();
+ listedDatabases_.set(index, value);
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder setListedDatabases(
+ int index, com.google.spanner.admin.database.v1.Database.Builder builderForValue) {
+ if (listedDatabasesBuilder_ == null) {
+ ensureListedDatabasesIsMutable();
+ listedDatabases_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder addListedDatabases(com.google.spanner.admin.database.v1.Database value) {
+ if (listedDatabasesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedDatabasesIsMutable();
+ listedDatabases_.add(value);
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder addListedDatabases(
+ int index, com.google.spanner.admin.database.v1.Database value) {
+ if (listedDatabasesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedDatabasesIsMutable();
+ listedDatabases_.add(index, value);
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder addListedDatabases(
+ com.google.spanner.admin.database.v1.Database.Builder builderForValue) {
+ if (listedDatabasesBuilder_ == null) {
+ ensureListedDatabasesIsMutable();
+ listedDatabases_.add(builderForValue.build());
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder addListedDatabases(
+ int index, com.google.spanner.admin.database.v1.Database.Builder builderForValue) {
+ if (listedDatabasesBuilder_ == null) {
+ ensureListedDatabasesIsMutable();
+ listedDatabases_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder addAllListedDatabases(
+ java.lang.Iterable extends com.google.spanner.admin.database.v1.Database> values) {
+ if (listedDatabasesBuilder_ == null) {
+ ensureListedDatabasesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedDatabases_);
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder clearListedDatabases() {
+ if (listedDatabasesBuilder_ == null) {
+ listedDatabases_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public Builder removeListedDatabases(int index) {
+ if (listedDatabasesBuilder_ == null) {
+ ensureListedDatabasesIsMutable();
+ listedDatabases_.remove(index);
+ onChanged();
+ } else {
+ listedDatabasesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public com.google.spanner.admin.database.v1.Database.Builder getListedDatabasesBuilder(
+ int index) {
+ return getListedDatabasesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabasesOrBuilder(
+ int index) {
+ if (listedDatabasesBuilder_ == null) {
+ return listedDatabases_.get(index);
+ } else {
+ return listedDatabasesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public java.util.List extends com.google.spanner.admin.database.v1.DatabaseOrBuilder>
+ getListedDatabasesOrBuilderList() {
+ if (listedDatabasesBuilder_ != null) {
+ return listedDatabasesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(listedDatabases_);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public com.google.spanner.admin.database.v1.Database.Builder addListedDatabasesBuilder() {
+ return getListedDatabasesFieldBuilder()
+ .addBuilder(com.google.spanner.admin.database.v1.Database.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public com.google.spanner.admin.database.v1.Database.Builder addListedDatabasesBuilder(
+ int index) {
+ return getListedDatabasesFieldBuilder()
+ .addBuilder(index, com.google.spanner.admin.database.v1.Database.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ public java.util.List+ * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public java.util.List+ * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public int getListedDatabaseOperationsCount() {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ return listedDatabaseOperations_.size();
+ } else {
+ return listedDatabaseOperationsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public com.google.longrunning.Operation getListedDatabaseOperations(int index) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ return listedDatabaseOperations_.get(index);
+ } else {
+ return listedDatabaseOperationsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder setListedDatabaseOperations(int index, com.google.longrunning.Operation value) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedDatabaseOperationsIsMutable();
+ listedDatabaseOperations_.set(index, value);
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder setListedDatabaseOperations(
+ int index, com.google.longrunning.Operation.Builder builderForValue) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ ensureListedDatabaseOperationsIsMutable();
+ listedDatabaseOperations_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder addListedDatabaseOperations(com.google.longrunning.Operation value) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedDatabaseOperationsIsMutable();
+ listedDatabaseOperations_.add(value);
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder addListedDatabaseOperations(int index, com.google.longrunning.Operation value) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedDatabaseOperationsIsMutable();
+ listedDatabaseOperations_.add(index, value);
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder addListedDatabaseOperations(
+ com.google.longrunning.Operation.Builder builderForValue) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ ensureListedDatabaseOperationsIsMutable();
+ listedDatabaseOperations_.add(builderForValue.build());
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder addListedDatabaseOperations(
+ int index, com.google.longrunning.Operation.Builder builderForValue) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ ensureListedDatabaseOperationsIsMutable();
+ listedDatabaseOperations_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder addAllListedDatabaseOperations(
+ java.lang.Iterable extends com.google.longrunning.Operation> values) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ ensureListedDatabaseOperationsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedDatabaseOperations_);
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder clearListedDatabaseOperations() {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ listedDatabaseOperations_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public Builder removeListedDatabaseOperations(int index) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ ensureListedDatabaseOperationsIsMutable();
+ listedDatabaseOperations_.remove(index);
+ onChanged();
+ } else {
+ listedDatabaseOperationsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public com.google.longrunning.Operation.Builder getListedDatabaseOperationsBuilder(int index) {
+ return getListedDatabaseOperationsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBuilder(
+ int index) {
+ if (listedDatabaseOperationsBuilder_ == null) {
+ return listedDatabaseOperations_.get(index);
+ } else {
+ return listedDatabaseOperationsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public java.util.List extends com.google.longrunning.OperationOrBuilder>
+ getListedDatabaseOperationsOrBuilderList() {
+ if (listedDatabaseOperationsBuilder_ != null) {
+ return listedDatabaseOperationsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(listedDatabaseOperations_);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public com.google.longrunning.Operation.Builder addListedDatabaseOperationsBuilder() {
+ return getListedDatabaseOperationsFieldBuilder()
+ .addBuilder(com.google.longrunning.Operation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public com.google.longrunning.Operation.Builder addListedDatabaseOperationsBuilder(int index) {
+ return getListedDatabaseOperationsFieldBuilder()
+ .addBuilder(index, com.google.longrunning.Operation.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ public java.util.List+ * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The nextPageToken.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nextPageToken_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ nextPageToken_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.spanner.admin.database.v1.Database database_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.Database,
+ com.google.spanner.admin.database.v1.Database.Builder,
+ com.google.spanner.admin.database.v1.DatabaseOrBuilder>
+ databaseBuilder_;
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ *
+ * @return Whether the database field is set.
+ */
+ public boolean hasDatabase() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ *
+ * @return The database.
+ */
+ public com.google.spanner.admin.database.v1.Database getDatabase() {
+ if (databaseBuilder_ == null) {
+ return database_ == null
+ ? com.google.spanner.admin.database.v1.Database.getDefaultInstance()
+ : database_;
+ } else {
+ return databaseBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ public Builder setDatabase(com.google.spanner.admin.database.v1.Database value) {
+ if (databaseBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ database_ = value;
+ } else {
+ databaseBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ public Builder setDatabase(
+ com.google.spanner.admin.database.v1.Database.Builder builderForValue) {
+ if (databaseBuilder_ == null) {
+ database_ = builderForValue.build();
+ } else {
+ databaseBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ public Builder mergeDatabase(com.google.spanner.admin.database.v1.Database value) {
+ if (databaseBuilder_ == null) {
+ if (((bitField0_ & 0x00000008) != 0)
+ && database_ != null
+ && database_ != com.google.spanner.admin.database.v1.Database.getDefaultInstance()) {
+ getDatabaseBuilder().mergeFrom(value);
+ } else {
+ database_ = value;
+ }
+ } else {
+ databaseBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ public Builder clearDatabase() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ database_ = null;
+ if (databaseBuilder_ != null) {
+ databaseBuilder_.dispose();
+ databaseBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ public com.google.spanner.admin.database.v1.Database.Builder getDatabaseBuilder() {
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return getDatabaseFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ public com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuilder() {
+ if (databaseBuilder_ != null) {
+ return databaseBuilder_.getMessageOrBuilder();
+ } else {
+ return database_ == null
+ ? com.google.spanner.admin.database.v1.Database.getDefaultInstance()
+ : database_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.Database,
+ com.google.spanner.admin.database.v1.Database.Builder,
+ com.google.spanner.admin.database.v1.DatabaseOrBuilder>
+ getDatabaseFieldBuilder() {
+ if (databaseBuilder_ == null) {
+ databaseBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.Database,
+ com.google.spanner.admin.database.v1.Database.Builder,
+ com.google.spanner.admin.database.v1.DatabaseOrBuilder>(
+ getDatabase(), getParentForChildren(), isClean());
+ database_ = null;
+ }
+ return databaseBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CloudDatabaseResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CloudDatabaseResponse)
+ private static final com.google.spanner.executor.v1.CloudDatabaseResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CloudDatabaseResponse();
+ }
+
+ public static com.google.spanner.executor.v1.CloudDatabaseResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ java.util.List+ * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ com.google.spanner.admin.database.v1.Database getListedDatabases(int index);
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ int getListedDatabasesCount();
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ java.util.List extends com.google.spanner.admin.database.v1.DatabaseOrBuilder>
+ getListedDatabasesOrBuilderList();
+ /**
+ *
+ *
+ * + * List of databases returned by ListCloudDatabasesAction. + *+ * + *
repeated .google.spanner.admin.database.v1.Database listed_databases = 1;
+ */
+ com.google.spanner.admin.database.v1.DatabaseOrBuilder getListedDatabasesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ java.util.List+ * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ com.google.longrunning.Operation getListedDatabaseOperations(int index);
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ int getListedDatabaseOperationsCount();
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ java.util.List extends com.google.longrunning.OperationOrBuilder>
+ getListedDatabaseOperationsOrBuilderList();
+ /**
+ *
+ *
+ * + * List of operations returned by ListCloudDatabaseOperationsAction. + *+ * + *
repeated .google.longrunning.Operation listed_database_operations = 2;
+ */
+ com.google.longrunning.OperationOrBuilder getListedDatabaseOperationsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 3;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ *
+ * @return Whether the database field is set.
+ */
+ boolean hasDatabase();
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ *
+ * @return The database.
+ */
+ com.google.spanner.admin.database.v1.Database getDatabase();
+ /**
+ *
+ *
+ * + * Database returned by GetCloudDatabaseAction + *+ * + *
.google.spanner.admin.database.v1.Database database = 4;
+ */
+ com.google.spanner.admin.database.v1.DatabaseOrBuilder getDatabaseOrBuilder();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java
new file mode 100644
index 00000000000..b7d00e38d0f
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudExecutorProto.java
@@ -0,0 +1,1665 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+public final class CloudExecutorProto {
+ private CloudExecutorProto() {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {}
+
+ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
+ registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
+ }
+
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_SpannerAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_SpannerAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ReadAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ReadAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_QueryAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_QueryAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_QueryAction_Parameter_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_DmlAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_DmlAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_BatchDmlAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_BatchDmlAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_Value_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_Value_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_KeyRange_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_KeyRange_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_KeySet_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_KeySet_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ValueList_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ValueList_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_MutationAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_MutationAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_MutationAction_Mod_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_MutationAction_Mod_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_WriteMutationsAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_WriteMutationsAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_StartTransactionAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_Concurrency_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_Concurrency_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_TableMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_TableMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ColumnMetadata_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ColumnMetadata_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_TransactionExecutionOptions_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_FinishTransactionAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_AdminAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_AdminAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_LabelsEntry_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_LabelsEntry_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ListCloudInstancesAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_GetCloudInstanceAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CreateCloudBackupAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CreateCloudBackupAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CopyCloudBackupAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CopyCloudBackupAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_GetCloudBackupAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ListCloudBackupsAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_GetOperationAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_GetOperationAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CancelOperationAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CancelOperationAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_StartBatchTransactionAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_BatchPartition_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_BatchPartition_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ExecutePartitionAction_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_SpannerActionOutcome_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_AdminResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_AdminResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CloudBackupResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CloudBackupResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_OperationResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_OperationResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CloudInstanceResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CloudInstanceResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_CloudDatabaseResponse_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_CloudDatabaseResponse_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ReadResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ReadResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_QueryResult_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_QueryResult_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ChangeStreamRecord_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ChangeStreamRecord_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_DataChangeRecord_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_fieldAccessorTable;
+ static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor;
+ static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_google_spanner_executor_v1_HeartbeatRecord_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ return descriptor;
+ }
+
+ private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
+
+ static {
+ java.lang.String[] descriptorData = {
+ "\n/google/spanner/executor/v1/cloud_execu"
+ + "tor.proto\022\032google.spanner.executor.v1\032\027g"
+ + "oogle/api/client.proto\032\037google/api/field"
+ + "_behavior.proto\032#google/longrunning/oper"
+ + "ations.proto\032\037google/protobuf/timestamp."
+ + "proto\032\027google/rpc/status.proto\032-google/s"
+ + "panner/admin/database/v1/backup.proto\032-g"
+ + "oogle/spanner/admin/database/v1/common.p"
+ + "roto\032=google/spanner/admin/database/v1/s"
+ + "panner_database_admin.proto\032=google/span"
+ + "ner/admin/instance/v1/spanner_instance_a"
+ + "dmin.proto\032\037google/spanner/v1/spanner.pr"
+ + "oto\032\034google/spanner/v1/type.proto\"i\n\031Spa"
+ + "nnerAsyncActionRequest\022\021\n\taction_id\030\001 \001("
+ + "\005\0229\n\006action\030\002 \001(\0132).google.spanner.execu"
+ + "tor.v1.SpannerAction\"r\n\032SpannerAsyncActi"
+ + "onResponse\022\021\n\taction_id\030\001 \001(\005\022A\n\007outcome"
+ + "\030\002 \001(\01320.google.spanner.executor.v1.Span"
+ + "nerActionOutcome\"\331\t\n\rSpannerAction\022\025\n\rda"
+ + "tabase_path\030\001 \001(\t\022C\n\005start\030\n \001(\01322.googl"
+ + "e.spanner.executor.v1.StartTransactionAc"
+ + "tionH\000\022E\n\006finish\030\013 \001(\01323.google.spanner."
+ + "executor.v1.FinishTransactionActionH\000\0226\n"
+ + "\004read\030\024 \001(\0132&.google.spanner.executor.v1"
+ + ".ReadActionH\000\0228\n\005query\030\025 \001(\0132\'.google.sp"
+ + "anner.executor.v1.QueryActionH\000\022>\n\010mutat"
+ + "ion\030\026 \001(\0132*.google.spanner.executor.v1.M"
+ + "utationActionH\000\0224\n\003dml\030\027 \001(\0132%.google.sp"
+ + "anner.executor.v1.DmlActionH\000\022?\n\tbatch_d"
+ + "ml\030\030 \001(\0132*.google.spanner.executor.v1.Ba"
+ + "tchDmlActionH\000\022A\n\005write\030\031 \001(\01320.google.s"
+ + "panner.executor.v1.WriteMutationsActionH"
+ + "\000\022Q\n\022partitioned_update\030\033 \001(\01323.google.s"
+ + "panner.executor.v1.PartitionedUpdateActi"
+ + "onH\000\0228\n\005admin\030\036 \001(\0132\'.google.spanner.exe"
+ + "cutor.v1.AdminActionH\000\022R\n\017start_batch_tx"
+ + "n\030( \001(\01327.google.spanner.executor.v1.Sta"
+ + "rtBatchTransactionActionH\000\022R\n\017close_batc"
+ + "h_txn\030) \001(\01327.google.spanner.executor.v1"
+ + ".CloseBatchTransactionActionH\000\022d\n\033genera"
+ + "te_db_partitions_read\030* \001(\0132=.google.spa"
+ + "nner.executor.v1.GenerateDbPartitionsFor"
+ + "ReadActionH\000\022f\n\034generate_db_partitions_q"
+ + "uery\030+ \001(\0132>.google.spanner.executor.v1."
+ + "GenerateDbPartitionsForQueryActionH\000\022O\n\021"
+ + "execute_partition\030, \001(\01322.google.spanner"
+ + ".executor.v1.ExecutePartitionActionH\000\022[\n"
+ + "\033execute_change_stream_query\0302 \001(\01324.goo"
+ + "gle.spanner.executor.v1.ExecuteChangeStr"
+ + "eamQueryH\000B\010\n\006action\"\212\001\n\nReadAction\022\r\n\005t"
+ + "able\030\001 \001(\t\022\022\n\005index\030\002 \001(\tH\000\210\001\001\022\016\n\006column"
+ + "\030\003 \003(\t\0220\n\004keys\030\004 \001(\0132\".google.spanner.ex"
+ + "ecutor.v1.KeySet\022\r\n\005limit\030\005 \001(\005B\010\n\006_inde"
+ + "x\"\321\001\n\013QueryAction\022\013\n\003sql\030\001 \001(\t\022A\n\006params"
+ + "\030\002 \003(\01321.google.spanner.executor.v1.Quer"
+ + "yAction.Parameter\032r\n\tParameter\022\014\n\004name\030\001"
+ + " \001(\t\022%\n\004type\030\002 \001(\0132\027.google.spanner.v1.T"
+ + "ype\0220\n\005value\030\003 \001(\0132!.google.spanner.exec"
+ + "utor.v1.Value\"\206\001\n\tDmlAction\0227\n\006update\030\001 "
+ + "\001(\0132\'.google.spanner.executor.v1.QueryAc"
+ + "tion\022$\n\027autocommit_if_supported\030\002 \001(\010H\000\210"
+ + "\001\001B\032\n\030_autocommit_if_supported\"J\n\016BatchD"
+ + "mlAction\0228\n\007updates\030\001 \003(\0132\'.google.spann"
+ + "er.executor.v1.QueryAction\"\311\003\n\005Value\022\021\n\007"
+ + "is_null\030\001 \001(\010H\000\022\023\n\tint_value\030\002 \001(\003H\000\022\024\n\n"
+ + "bool_value\030\003 \001(\010H\000\022\026\n\014double_value\030\004 \001(\001"
+ + "H\000\022\025\n\013bytes_value\030\005 \001(\014H\000\022\026\n\014string_valu"
+ + "e\030\006 \001(\tH\000\022=\n\014struct_value\030\007 \001(\0132%.google"
+ + ".spanner.executor.v1.ValueListH\000\0225\n\017time"
+ + "stamp_value\030\010 \001(\0132\032.google.protobuf.Time"
+ + "stampH\000\022\031\n\017date_days_value\030\t \001(\005H\000\022\035\n\023is"
+ + "_commit_timestamp\030\n \001(\010H\000\022<\n\013array_value"
+ + "\030\013 \001(\0132%.google.spanner.executor.v1.Valu"
+ + "eListH\000\0220\n\narray_type\030\014 \001(\0132\027.google.spa"
+ + "nner.v1.TypeH\001\210\001\001B\014\n\nvalue_typeB\r\n\013_arra"
+ + "y_type\"\237\002\n\010KeyRange\0224\n\005start\030\001 \001(\0132%.goo"
+ + "gle.spanner.executor.v1.ValueList\0224\n\005lim"
+ + "it\030\002 \001(\0132%.google.spanner.executor.v1.Va"
+ + "lueList\022<\n\004type\030\003 \001(\0162).google.spanner.e"
+ + "xecutor.v1.KeyRange.TypeH\000\210\001\001\"`\n\004Type\022\024\n"
+ + "\020TYPE_UNSPECIFIED\020\000\022\021\n\rCLOSED_CLOSED\020\001\022\017"
+ + "\n\013CLOSED_OPEN\020\002\022\017\n\013OPEN_CLOSED\020\003\022\r\n\tOPEN"
+ + "_OPEN\020\004B\007\n\005_type\"\200\001\n\006KeySet\0224\n\005point\030\001 \003"
+ + "(\0132%.google.spanner.executor.v1.ValueLis"
+ + "t\0223\n\005range\030\002 \003(\0132$.google.spanner.execut"
+ + "or.v1.KeyRange\022\013\n\003all\030\003 \001(\010\"=\n\tValueList"
+ + "\0220\n\005value\030\001 \003(\0132!.google.spanner.executo"
+ + "r.v1.Value\"\274\005\n\016MutationAction\022;\n\003mod\030\001 \003"
+ + "(\0132..google.spanner.executor.v1.Mutation"
+ + "Action.Mod\032z\n\nInsertArgs\022\016\n\006column\030\001 \003(\t"
+ + "\022%\n\004type\030\002 \003(\0132\027.google.spanner.v1.Type\022"
+ + "5\n\006values\030\003 \003(\0132%.google.spanner.executo"
+ + "r.v1.ValueList\032z\n\nUpdateArgs\022\016\n\006column\030\001"
+ + " \003(\t\022%\n\004type\030\002 \003(\0132\027.google.spanner.v1.T"
+ + "ype\0225\n\006values\030\003 \003(\0132%.google.spanner.exe"
+ + "cutor.v1.ValueList\032\364\002\n\003Mod\022\r\n\005table\030\001 \001("
+ + "\t\022E\n\006insert\030\002 \001(\01325.google.spanner.execu"
+ + "tor.v1.MutationAction.InsertArgs\022E\n\006upda"
+ + "te\030\003 \001(\01325.google.spanner.executor.v1.Mu"
+ + "tationAction.UpdateArgs\022O\n\020insert_or_upd"
+ + "ate\030\004 \001(\01325.google.spanner.executor.v1.M"
+ + "utationAction.InsertArgs\022F\n\007replace\030\005 \001("
+ + "\01325.google.spanner.executor.v1.MutationA"
+ + "ction.InsertArgs\0227\n\013delete_keys\030\006 \001(\0132\"."
+ + "google.spanner.executor.v1.KeySet\"T\n\024Wri"
+ + "teMutationsAction\022<\n\010mutation\030\001 \001(\0132*.go"
+ + "ogle.spanner.executor.v1.MutationAction\""
+ + "\337\002\n\027PartitionedUpdateAction\022i\n\007options\030\001"
+ + " \001(\0132S.google.spanner.executor.v1.Partit"
+ + "ionedUpdateAction.ExecutePartitionedUpda"
+ + "teOptionsH\000\210\001\001\0227\n\006update\030\002 \001(\0132\'.google."
+ + "spanner.executor.v1.QueryAction\032\223\001\n\037Exec"
+ + "utePartitionedUpdateOptions\022E\n\014rpc_prior"
+ + "ity\030\001 \001(\0162*.google.spanner.v1.RequestOpt"
+ + "ions.PriorityH\000\210\001\001\022\020\n\003tag\030\002 \001(\tH\001\210\001\001B\017\n\r"
+ + "_rpc_priorityB\006\n\004_tagB\n\n\010_options\"\256\002\n\026St"
+ + "artTransactionAction\022A\n\013concurrency\030\001 \001("
+ + "\0132\'.google.spanner.executor.v1.Concurren"
+ + "cyH\000\210\001\001\0228\n\005table\030\002 \003(\0132).google.spanner."
+ + "executor.v1.TableMetadata\022\030\n\020transaction"
+ + "_seed\030\003 \001(\t\022W\n\021execution_options\030\004 \001(\01327"
+ + ".google.spanner.executor.v1.TransactionE"
+ + "xecutionOptionsH\001\210\001\001B\016\n\014_concurrencyB\024\n\022"
+ + "_execution_options\"\256\002\n\013Concurrency\022\033\n\021st"
+ + "aleness_seconds\030\001 \001(\001H\000\022#\n\031min_read_time"
+ + "stamp_micros\030\002 \001(\003H\000\022\037\n\025max_staleness_se"
+ + "conds\030\003 \001(\001H\000\022 \n\026exact_timestamp_micros\030"
+ + "\004 \001(\003H\000\022\020\n\006strong\030\005 \001(\010H\000\022\017\n\005batch\030\006 \001(\010"
+ + "H\000\022\033\n\023snapshot_epoch_read\030\007 \001(\010\022!\n\031snaps"
+ + "hot_epoch_root_table\030\010 \001(\t\022#\n\033batch_read"
+ + "_timestamp_micros\030\t \001(\003B\022\n\020concurrency_m"
+ + "ode\"\231\001\n\rTableMetadata\022\014\n\004name\030\001 \001(\t\022:\n\006c"
+ + "olumn\030\002 \003(\0132*.google.spanner.executor.v1"
+ + ".ColumnMetadata\022>\n\nkey_column\030\003 \003(\0132*.go"
+ + "ogle.spanner.executor.v1.ColumnMetadata\""
+ + "E\n\016ColumnMetadata\022\014\n\004name\030\001 \001(\t\022%\n\004type\030"
+ + "\002 \001(\0132\027.google.spanner.v1.Type\"1\n\033Transa"
+ + "ctionExecutionOptions\022\022\n\noptimistic\030\001 \001("
+ + "\010\"\230\001\n\027FinishTransactionAction\022F\n\004mode\030\001 "
+ + "\001(\01628.google.spanner.executor.v1.FinishT"
+ + "ransactionAction.Mode\"5\n\004Mode\022\024\n\020MODE_UN"
+ + "SPECIFIED\020\000\022\n\n\006COMMIT\020\001\022\013\n\007ABANDON\020\002\"\305\023\n"
+ + "\013AdminAction\022a\n\033create_user_instance_con"
+ + "fig\030\001 \001(\0132:.google.spanner.executor.v1.C"
+ + "reateUserInstanceConfigActionH\000\022a\n\033updat"
+ + "e_user_instance_config\030\002 \001(\0132:.google.sp"
+ + "anner.executor.v1.UpdateUserInstanceConf"
+ + "igActionH\000\022a\n\033delete_user_instance_confi"
+ + "g\030\003 \001(\0132:.google.spanner.executor.v1.Del"
+ + "eteUserInstanceConfigActionH\000\022]\n\031get_clo"
+ + "ud_instance_config\030\004 \001(\01328.google.spanne"
+ + "r.executor.v1.GetCloudInstanceConfigActi"
+ + "onH\000\022[\n\025list_instance_configs\030\005 \001(\0132:.go"
+ + "ogle.spanner.executor.v1.ListCloudInstan"
+ + "ceConfigsActionH\000\022V\n\025create_cloud_instan"
+ + "ce\030\006 \001(\01325.google.spanner.executor.v1.Cr"
+ + "eateCloudInstanceActionH\000\022V\n\025update_clou"
+ + "d_instance\030\007 \001(\01325.google.spanner.execut"
+ + "or.v1.UpdateCloudInstanceActionH\000\022V\n\025del"
+ + "ete_cloud_instance\030\010 \001(\01325.google.spanne"
+ + "r.executor.v1.DeleteCloudInstanceActionH"
+ + "\000\022T\n\024list_cloud_instances\030\t \001(\01324.google"
+ + ".spanner.executor.v1.ListCloudInstancesA"
+ + "ctionH\000\022P\n\022get_cloud_instance\030\n \001(\01322.go"
+ + "ogle.spanner.executor.v1.GetCloudInstanc"
+ + "eActionH\000\022V\n\025create_cloud_database\030\013 \001(\013"
+ + "25.google.spanner.executor.v1.CreateClou"
+ + "dDatabaseActionH\000\022]\n\031update_cloud_databa"
+ + "se_ddl\030\014 \001(\01328.google.spanner.executor.v"
+ + "1.UpdateCloudDatabaseDdlActionH\000\022V\n\025upda"
+ + "te_cloud_database\030\033 \001(\01325.google.spanner"
+ + ".executor.v1.UpdateCloudDatabaseActionH\000"
+ + "\022R\n\023drop_cloud_database\030\r \001(\01323.google.s"
+ + "panner.executor.v1.DropCloudDatabaseActi"
+ + "onH\000\022T\n\024list_cloud_databases\030\016 \001(\01324.goo"
+ + "gle.spanner.executor.v1.ListCloudDatabas"
+ + "esActionH\000\022g\n\036list_cloud_database_operat"
+ + "ions\030\017 \001(\0132=.google.spanner.executor.v1."
+ + "ListCloudDatabaseOperationsActionH\000\022X\n\026r"
+ + "estore_cloud_database\030\020 \001(\01326.google.spa"
+ + "nner.executor.v1.RestoreCloudDatabaseAct"
+ + "ionH\000\022P\n\022get_cloud_database\030\021 \001(\01322.goog"
+ + "le.spanner.executor.v1.GetCloudDatabaseA"
+ + "ctionH\000\022R\n\023create_cloud_backup\030\022 \001(\01323.g"
+ + "oogle.spanner.executor.v1.CreateCloudBac"
+ + "kupActionH\000\022N\n\021copy_cloud_backup\030\023 \001(\01321"
+ + ".google.spanner.executor.v1.CopyCloudBac"
+ + "kupActionH\000\022L\n\020get_cloud_backup\030\024 \001(\01320."
+ + "google.spanner.executor.v1.GetCloudBacku"
+ + "pActionH\000\022R\n\023update_cloud_backup\030\025 \001(\01323"
+ + ".google.spanner.executor.v1.UpdateCloudB"
+ + "ackupActionH\000\022R\n\023delete_cloud_backup\030\026 \001"
+ + "(\01323.google.spanner.executor.v1.DeleteCl"
+ + "oudBackupActionH\000\022P\n\022list_cloud_backups\030"
+ + "\027 \001(\01322.google.spanner.executor.v1.ListC"
+ + "loudBackupsActionH\000\022c\n\034list_cloud_backup"
+ + "_operations\030\030 \001(\0132;.google.spanner.execu"
+ + "tor.v1.ListCloudBackupOperationsActionH\000"
+ + "\022G\n\rget_operation\030\031 \001(\0132..google.spanner"
+ + ".executor.v1.GetOperationActionH\000\022M\n\020can"
+ + "cel_operation\030\032 \001(\01321.google.spanner.exe"
+ + "cutor.v1.CancelOperationActionH\000\022`\n\032reco"
+ + "nfigure_cloud_database\030\034 \001(\0132:.google.sp"
+ + "anner.executor.v1.ReconfigureCloudDataba"
+ + "seActionH\000B\010\n\006action\"\245\001\n\036CreateUserInsta"
+ + "nceConfigAction\022\026\n\016user_config_id\030\001 \001(\t\022"
+ + "\022\n\nproject_id\030\002 \001(\t\022\026\n\016base_config_id\030\003 "
+ + "\001(\t\022?\n\010replicas\030\004 \003(\0132-.google.spanner.a"
+ + "dmin.instance.v1.ReplicaInfo\"\377\001\n\036UpdateU"
+ + "serInstanceConfigAction\022\026\n\016user_config_i"
+ + "d\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022\031\n\014display_n"
+ + "ame\030\003 \001(\tH\000\210\001\001\022V\n\006labels\030\004 \003(\0132F.google."
+ + "spanner.executor.v1.UpdateUserInstanceCo"
+ + "nfigAction.LabelsEntry\032-\n\013LabelsEntry\022\013\n"
+ + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\017\n\r_displa"
+ + "y_name\"N\n\034GetCloudInstanceConfigAction\022\032"
+ + "\n\022instance_config_id\030\001 \001(\t\022\022\n\nproject_id"
+ + "\030\002 \001(\t\"L\n\036DeleteUserInstanceConfigAction"
+ + "\022\026\n\016user_config_id\030\001 \001(\t\022\022\n\nproject_id\030\002"
+ + " \001(\t\"\202\001\n\036ListCloudInstanceConfigsAction\022"
+ + "\022\n\nproject_id\030\001 \001(\t\022\026\n\tpage_size\030\002 \001(\005H\000"
+ + "\210\001\001\022\027\n\npage_token\030\003 \001(\tH\001\210\001\001B\014\n\n_page_si"
+ + "zeB\r\n\013_page_token\"\253\003\n\031CreateCloudInstanc"
+ + "eAction\022\023\n\013instance_id\030\001 \001(\t\022\022\n\nproject_"
+ + "id\030\002 \001(\t\022\032\n\022instance_config_id\030\003 \001(\t\022\027\n\n"
+ + "node_count\030\004 \001(\005H\000\210\001\001\022\035\n\020processing_unit"
+ + "s\030\006 \001(\005H\001\210\001\001\022T\n\022autoscaling_config\030\007 \001(\013"
+ + "23.google.spanner.admin.instance.v1.Auto"
+ + "scalingConfigH\002\210\001\001\022Q\n\006labels\030\005 \003(\0132A.goo"
+ + "gle.spanner.executor.v1.CreateCloudInsta"
+ + "nceAction.LabelsEntry\032-\n\013LabelsEntry\022\013\n\003"
+ + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001B\r\n\013_node_co"
+ + "untB\023\n\021_processing_unitsB\025\n\023_autoscaling"
+ + "_config\"\273\003\n\031UpdateCloudInstanceAction\022\023\n"
+ + "\013instance_id\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022\031"
+ + "\n\014display_name\030\003 \001(\tH\000\210\001\001\022\027\n\nnode_count\030"
+ + "\004 \001(\005H\001\210\001\001\022\035\n\020processing_units\030\005 \001(\005H\002\210\001"
+ + "\001\022T\n\022autoscaling_config\030\007 \001(\01323.google.s"
+ + "panner.admin.instance.v1.AutoscalingConf"
+ + "igH\003\210\001\001\022Q\n\006labels\030\006 \003(\0132A.google.spanner"
+ + ".executor.v1.UpdateCloudInstanceAction.L"
+ + "abelsEntry\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t\022\r"
+ + "\n\005value\030\002 \001(\t:\0028\001B\017\n\r_display_nameB\r\n\013_n"
+ + "ode_countB\023\n\021_processing_unitsB\025\n\023_autos"
+ + "caling_config\"D\n\031DeleteCloudInstanceActi"
+ + "on\022\023\n\013instance_id\030\001 \001(\t\022\022\n\nproject_id\030\002 "
+ + "\001(\t\"\227\002\n\031CreateCloudDatabaseAction\022\023\n\013ins"
+ + "tance_id\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022\023\n\013da"
+ + "tabase_id\030\003 \001(\t\022\025\n\rsdl_statement\030\004 \003(\t\022M"
+ + "\n\021encryption_config\030\005 \001(\01322.google.spann"
+ + "er.admin.database.v1.EncryptionConfig\022\024\n"
+ + "\007dialect\030\006 \001(\tH\000\210\001\001\022\036\n\021proto_descriptors"
+ + "\030\007 \001(\014H\001\210\001\001B\n\n\010_dialectB\024\n\022_proto_descri"
+ + "ptors\"\277\001\n\034UpdateCloudDatabaseDdlAction\022\023"
+ + "\n\013instance_id\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022"
+ + "\023\n\013database_id\030\003 \001(\t\022\025\n\rsdl_statement\030\004 "
+ + "\003(\t\022\024\n\014operation_id\030\005 \001(\t\022\036\n\021proto_descr"
+ + "iptors\030\006 \001(\014H\000\210\001\001B\024\n\022_proto_descriptors\""
+ + "{\n\031UpdateCloudDatabaseAction\022\023\n\013instance"
+ + "_id\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022\025\n\rdatabas"
+ + "e_name\030\003 \001(\t\022\036\n\026enable_drop_protection\030\004"
+ + " \001(\010\"W\n\027DropCloudDatabaseAction\022\023\n\013insta"
+ + "nce_id\030\001 \001(\t\022\022\n\nproject_id\030\002 \001(\t\022\023\n\013data"
+ + "base_id\030\003 \001(\t\"g\n\036ReconfigureCloudDatabas"
+ + "eAction\022\031\n\014database_uri\030\001 \001(\tH\000\210\001\001\022\031\n\021se"
+ + "rving_locations\030\002 \003(\tB\017\n\r_database_uri\"j"
+ + "\n\030ListCloudDatabasesAction\022\022\n\nproject_id"
+ + "\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(\t\022\021\n\tpage_size"
+ + "\030\003 \001(\005\022\022\n\npage_token\030\004 \001(\t\"\234\001\n\030ListCloud"
+ + "InstancesAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\006f"
+ + "ilter\030\002 \001(\tH\000\210\001\001\022\026\n\tpage_size\030\003 \001(\005H\001\210\001\001"
+ + "\022\027\n\npage_token\030\004 \001(\tH\002\210\001\001B\t\n\007_filterB\014\n\n"
+ + "_page_sizeB\r\n\013_page_token\"A\n\026GetCloudIns"
+ + "tanceAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013insta"
+ + "nce_id\030\002 \001(\t\"\203\001\n!ListCloudDatabaseOperat"
+ + "ionsAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instan"
+ + "ce_id\030\002 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size"
+ + "\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"\222\001\n\032RestoreCl"
+ + "oudDatabaseAction\022\022\n\nproject_id\030\001 \001(\t\022\032\n"
+ + "\022backup_instance_id\030\002 \001(\t\022\021\n\tbackup_id\030\003"
+ + " \001(\t\022\034\n\024database_instance_id\030\004 \001(\t\022\023\n\013da"
+ + "tabase_id\030\005 \001(\t\"V\n\026GetCloudDatabaseActio"
+ + "n\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001"
+ + "(\t\022\023\n\013database_id\030\003 \001(\t\"\351\001\n\027CreateCloudB"
+ + "ackupAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013insta"
+ + "nce_id\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\022\023\n\013datab"
+ + "ase_id\030\004 \001(\t\0225\n\013expire_time\030\005 \001(\0132\032.goog"
+ + "le.protobuf.TimestampB\004\342A\001\003\0225\n\014version_t"
+ + "ime\030\006 \001(\0132\032.google.protobuf.TimestampH\000\210"
+ + "\001\001B\017\n\r_version_time\"\241\001\n\025CopyCloudBackupA"
+ + "ction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_id"
+ + "\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\022\025\n\rsource_back"
+ + "up\030\004 \001(\t\0225\n\013expire_time\030\005 \001(\0132\032.google.p"
+ + "rotobuf.TimestampB\004\342A\001\003\"R\n\024GetCloudBacku"
+ + "pAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_"
+ + "id\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\"\214\001\n\027UpdateCl"
+ + "oudBackupAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013i"
+ + "nstance_id\030\002 \001(\t\022\021\n\tbackup_id\030\003 \001(\t\0225\n\013e"
+ + "xpire_time\030\004 \001(\0132\032.google.protobuf.Times"
+ + "tampB\004\342A\001\003\"U\n\027DeleteCloudBackupAction\022\022\n"
+ + "\nproject_id\030\001 \001(\t\022\023\n\013instance_id\030\002 \001(\t\022\021"
+ + "\n\tbackup_id\030\003 \001(\t\"x\n\026ListCloudBackupsAct"
+ + "ion\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013instance_id\030\002"
+ + " \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022"
+ + "\022\n\npage_token\030\005 \001(\t\"\201\001\n\037ListCloudBackupO"
+ + "perationsAction\022\022\n\nproject_id\030\001 \001(\t\022\023\n\013i"
+ + "nstance_id\030\002 \001(\t\022\016\n\006filter\030\003 \001(\t\022\021\n\tpage"
+ + "_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"\'\n\022GetOp"
+ + "erationAction\022\021\n\toperation\030\001 \001(\t\"*\n\025Canc"
+ + "elOperationAction\022\021\n\toperation\030\001 \001(\t\"\210\001\n"
+ + "\033StartBatchTransactionAction\0224\n\016batch_tx"
+ + "n_time\030\001 \001(\0132\032.google.protobuf.Timestamp"
+ + "H\000\022\r\n\003tid\030\002 \001(\014H\000\022\033\n\023cloud_database_role"
+ + "\030\003 \001(\tB\007\n\005param\".\n\033CloseBatchTransaction"
+ + "Action\022\017\n\007cleanup\030\001 \001(\010\"\227\002\n!GenerateDbPa"
+ + "rtitionsForReadAction\0224\n\004read\030\001 \001(\0132&.go"
+ + "ogle.spanner.executor.v1.ReadAction\0228\n\005t"
+ + "able\030\002 \003(\0132).google.spanner.executor.v1."
+ + "TableMetadata\022(\n\033desired_bytes_per_parti"
+ + "tion\030\003 \001(\003H\000\210\001\001\022 \n\023max_partition_count\030\004"
+ + " \001(\003H\001\210\001\001B\036\n\034_desired_bytes_per_partitio"
+ + "nB\026\n\024_max_partition_count\"\246\001\n\"GenerateDb"
+ + "PartitionsForQueryAction\0226\n\005query\030\001 \001(\0132"
+ + "\'.google.spanner.executor.v1.QueryAction"
+ + "\022(\n\033desired_bytes_per_partition\030\002 \001(\003H\000\210"
+ + "\001\001B\036\n\034_desired_bytes_per_partition\"x\n\016Ba"
+ + "tchPartition\022\021\n\tpartition\030\001 \001(\014\022\027\n\017parti"
+ + "tion_token\030\002 \001(\014\022\022\n\005table\030\003 \001(\tH\000\210\001\001\022\022\n\005"
+ + "index\030\004 \001(\tH\001\210\001\001B\010\n\006_tableB\010\n\006_index\"W\n\026"
+ + "ExecutePartitionAction\022=\n\tpartition\030\001 \001("
+ + "\0132*.google.spanner.executor.v1.BatchPart"
+ + "ition\"\216\003\n\030ExecuteChangeStreamQuery\022\014\n\004na"
+ + "me\030\001 \001(\t\022.\n\nstart_time\030\002 \001(\0132\032.google.pr"
+ + "otobuf.Timestamp\0221\n\010end_time\030\003 \001(\0132\032.goo"
+ + "gle.protobuf.TimestampH\000\210\001\001\022\034\n\017partition"
+ + "_token\030\004 \001(\tH\001\210\001\001\022\024\n\014read_options\030\005 \003(\t\022"
+ + "#\n\026heartbeat_milliseconds\030\006 \001(\005H\002\210\001\001\022\035\n\020"
+ + "deadline_seconds\030\007 \001(\003H\003\210\001\001\022 \n\023cloud_dat"
+ + "abase_role\030\010 \001(\tH\004\210\001\001B\013\n\t_end_timeB\022\n\020_p"
+ + "artition_tokenB\031\n\027_heartbeat_millisecond"
+ + "sB\023\n\021_deadline_secondsB\026\n\024_cloud_databas"
+ + "e_role\"\242\005\n\024SpannerActionOutcome\022\'\n\006statu"
+ + "s\030\001 \001(\0132\022.google.rpc.StatusH\000\210\001\001\0224\n\013comm"
+ + "it_time\030\002 \001(\0132\032.google.protobuf.Timestam"
+ + "pH\001\210\001\001\022@\n\013read_result\030\003 \001(\0132&.google.spa"
+ + "nner.executor.v1.ReadResultH\002\210\001\001\022B\n\014quer"
+ + "y_result\030\004 \001(\0132\'.google.spanner.executor"
+ + ".v1.QueryResultH\003\210\001\001\022\"\n\025transaction_rest"
+ + "arted\030\005 \001(\010H\004\210\001\001\022\031\n\014batch_txn_id\030\006 \001(\014H\005"
+ + "\210\001\001\022@\n\014db_partition\030\007 \003(\0132*.google.spann"
+ + "er.executor.v1.BatchPartition\022B\n\014admin_r"
+ + "esult\030\010 \001(\0132\'.google.spanner.executor.v1"
+ + ".AdminResultH\006\210\001\001\022\031\n\021dml_rows_modified\030\t"
+ + " \003(\003\022M\n\025change_stream_records\030\n \003(\0132..go"
+ + "ogle.spanner.executor.v1.ChangeStreamRec"
+ + "ordB\t\n\007_statusB\016\n\014_commit_timeB\016\n\014_read_"
+ + "resultB\017\n\r_query_resultB\030\n\026_transaction_"
+ + "restartedB\017\n\r_batch_txn_idB\017\n\r_admin_res"
+ + "ult\"\231\003\n\013AdminResult\022H\n\017backup_response\030\001"
+ + " \001(\0132/.google.spanner.executor.v1.CloudB"
+ + "ackupResponse\022I\n\022operation_response\030\002 \001("
+ + "\0132-.google.spanner.executor.v1.Operation"
+ + "Response\022L\n\021database_response\030\003 \001(\01321.go"
+ + "ogle.spanner.executor.v1.CloudDatabaseRe"
+ + "sponse\022L\n\021instance_response\030\004 \001(\01321.goog"
+ + "le.spanner.executor.v1.CloudInstanceResp"
+ + "onse\022Y\n\030instance_config_response\030\005 \001(\01327"
+ + ".google.spanner.executor.v1.CloudInstanc"
+ + "eConfigResponse\"\353\001\n\023CloudBackupResponse\022"
+ + "@\n\016listed_backups\030\001 \003(\0132(.google.spanner"
+ + ".admin.database.v1.Backup\022?\n\030listed_back"
+ + "up_operations\030\002 \003(\0132\035.google.longrunning"
+ + ".Operation\022\027\n\017next_page_token\030\003 \001(\t\0228\n\006b"
+ + "ackup\030\004 \001(\0132(.google.spanner.admin.datab"
+ + "ase.v1.Backup\"\230\001\n\021OperationResponse\0228\n\021l"
+ + "isted_operations\030\001 \003(\0132\035.google.longrunn"
+ + "ing.Operation\022\027\n\017next_page_token\030\002 \001(\t\0220"
+ + "\n\toperation\030\003 \001(\0132\035.google.longrunning.O"
+ + "peration\"\264\001\n\025CloudInstanceResponse\022D\n\020li"
+ + "sted_instances\030\001 \003(\0132*.google.spanner.ad"
+ + "min.instance.v1.Instance\022\027\n\017next_page_to"
+ + "ken\030\002 \001(\t\022<\n\010instance\030\003 \001(\0132*.google.spa"
+ + "nner.admin.instance.v1.Instance\"\324\001\n\033Clou"
+ + "dInstanceConfigResponse\022Q\n\027listed_instan"
+ + "ce_configs\030\001 \003(\01320.google.spanner.admin."
+ + "instance.v1.InstanceConfig\022\027\n\017next_page_"
+ + "token\030\002 \001(\t\022I\n\017instance_config\030\003 \001(\01320.g"
+ + "oogle.spanner.admin.instance.v1.Instance"
+ + "Config\"\367\001\n\025CloudDatabaseResponse\022D\n\020list"
+ + "ed_databases\030\001 \003(\0132*.google.spanner.admi"
+ + "n.database.v1.Database\022A\n\032listed_databas"
+ + "e_operations\030\002 \003(\0132\035.google.longrunning."
+ + "Operation\022\027\n\017next_page_token\030\003 \001(\t\022<\n\010da"
+ + "tabase\030\004 \001(\0132*.google.spanner.admin.data"
+ + "base.v1.Database\"\336\001\n\nReadResult\022\r\n\005table"
+ + "\030\001 \001(\t\022\022\n\005index\030\002 \001(\tH\000\210\001\001\022\032\n\rrequest_in"
+ + "dex\030\003 \001(\005H\001\210\001\001\0222\n\003row\030\004 \003(\0132%.google.spa"
+ + "nner.executor.v1.ValueList\0224\n\010row_type\030\005"
+ + " \001(\0132\035.google.spanner.v1.StructTypeH\002\210\001\001"
+ + "B\010\n\006_indexB\020\n\016_request_indexB\013\n\t_row_typ",
+ "e\"\204\001\n\013QueryResult\0222\n\003row\030\001 \003(\0132%.google."
+ + "spanner.executor.v1.ValueList\0224\n\010row_typ"
+ + "e\030\002 \001(\0132\035.google.spanner.v1.StructTypeH\000"
+ + "\210\001\001B\013\n\t_row_type\"\363\001\n\022ChangeStreamRecord\022"
+ + "C\n\013data_change\030\001 \001(\0132,.google.spanner.ex"
+ + "ecutor.v1.DataChangeRecordH\000\022L\n\017child_pa"
+ + "rtition\030\002 \001(\01321.google.spanner.executor."
+ + "v1.ChildPartitionsRecordH\000\022@\n\theartbeat\030"
+ + "\003 \001(\0132+.google.spanner.executor.v1.Heart"
+ + "beatRecordH\000B\010\n\006record\"\330\004\n\020DataChangeRec"
+ + "ord\022/\n\013commit_time\030\001 \001(\0132\032.google.protob"
+ + "uf.Timestamp\022\027\n\017record_sequence\030\002 \001(\t\022\026\n"
+ + "\016transaction_id\030\003 \001(\t\022\026\n\016is_last_record\030"
+ + "\004 \001(\010\022\r\n\005table\030\005 \001(\t\022M\n\014column_types\030\006 \003"
+ + "(\01327.google.spanner.executor.v1.DataChan"
+ + "geRecord.ColumnType\022>\n\004mods\030\007 \003(\01320.goog"
+ + "le.spanner.executor.v1.DataChangeRecord."
+ + "Mod\022\020\n\010mod_type\030\010 \001(\t\022\032\n\022value_capture_t"
+ + "ype\030\t \001(\t\022\024\n\014record_count\030\n \001(\003\022\027\n\017parti"
+ + "tion_count\030\013 \001(\003\022\027\n\017transaction_tag\030\014 \001("
+ + "\t\022\035\n\025is_system_transaction\030\r \001(\010\032Z\n\nColu"
+ + "mnType\022\014\n\004name\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\026\n\016is"
+ + "_primary_key\030\003 \001(\010\022\030\n\020ordinal_position\030\004"
+ + " \001(\003\032;\n\003Mod\022\014\n\004keys\030\001 \001(\t\022\022\n\nnew_values\030"
+ + "\002 \001(\t\022\022\n\nold_values\030\003 \001(\t\"\376\001\n\025ChildParti"
+ + "tionsRecord\022.\n\nstart_time\030\001 \001(\0132\032.google"
+ + ".protobuf.Timestamp\022\027\n\017record_sequence\030\002"
+ + " \001(\t\022Z\n\020child_partitions\030\003 \003(\0132@.google."
+ + "spanner.executor.v1.ChildPartitionsRecor"
+ + "d.ChildPartition\032@\n\016ChildPartition\022\r\n\005to"
+ + "ken\030\001 \001(\t\022\037\n\027parent_partition_tokens\030\002 \003"
+ + "(\t\"E\n\017HeartbeatRecord\0222\n\016heartbeat_time\030"
+ + "\001 \001(\0132\032.google.protobuf.Timestamp2\314\001\n\024Sp"
+ + "annerExecutorProxy\022\211\001\n\022ExecuteActionAsyn"
+ + "c\0225.google.spanner.executor.v1.SpannerAs"
+ + "yncActionRequest\0326.google.spanner.execut"
+ + "or.v1.SpannerAsyncActionResponse\"\000(\0010\001\032("
+ + "\312A%spanner-cloud-executor.googleapis.com"
+ + "Bx\n\036com.google.spanner.executor.v1B\022Clou"
+ + "dExecutorProtoP\001Z@cloud.google.com/go/sp"
+ + "anner/executor/apiv1/executorpb;executor"
+ + "pbb\006proto3"
+ };
+ descriptor =
+ com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
+ descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ com.google.api.ClientProto.getDescriptor(),
+ com.google.api.FieldBehaviorProto.getDescriptor(),
+ com.google.longrunning.OperationsProto.getDescriptor(),
+ com.google.protobuf.TimestampProto.getDescriptor(),
+ com.google.rpc.StatusProto.getDescriptor(),
+ com.google.spanner.admin.database.v1.BackupProto.getDescriptor(),
+ com.google.spanner.admin.database.v1.CommonProto.getDescriptor(),
+ com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.getDescriptor(),
+ com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.getDescriptor(),
+ com.google.spanner.v1.SpannerProto.getDescriptor(),
+ com.google.spanner.v1.TypeProto.getDescriptor(),
+ });
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionRequest_descriptor,
+ new java.lang.String[] {
+ "ActionId", "Action",
+ });
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_SpannerAsyncActionResponse_descriptor,
+ new java.lang.String[] {
+ "ActionId", "Outcome",
+ });
+ internal_static_google_spanner_executor_v1_SpannerAction_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_google_spanner_executor_v1_SpannerAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_SpannerAction_descriptor,
+ new java.lang.String[] {
+ "DatabasePath",
+ "Start",
+ "Finish",
+ "Read",
+ "Query",
+ "Mutation",
+ "Dml",
+ "BatchDml",
+ "Write",
+ "PartitionedUpdate",
+ "Admin",
+ "StartBatchTxn",
+ "CloseBatchTxn",
+ "GenerateDbPartitionsRead",
+ "GenerateDbPartitionsQuery",
+ "ExecutePartition",
+ "ExecuteChangeStreamQuery",
+ "Action",
+ });
+ internal_static_google_spanner_executor_v1_ReadAction_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_google_spanner_executor_v1_ReadAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ReadAction_descriptor,
+ new java.lang.String[] {
+ "Table", "Index", "Column", "Keys", "Limit", "Index",
+ });
+ internal_static_google_spanner_executor_v1_QueryAction_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_google_spanner_executor_v1_QueryAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_QueryAction_descriptor,
+ new java.lang.String[] {
+ "Sql", "Params",
+ });
+ internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor =
+ internal_static_google_spanner_executor_v1_QueryAction_descriptor.getNestedTypes().get(0);
+ internal_static_google_spanner_executor_v1_QueryAction_Parameter_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_QueryAction_Parameter_descriptor,
+ new java.lang.String[] {
+ "Name", "Type", "Value",
+ });
+ internal_static_google_spanner_executor_v1_DmlAction_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_google_spanner_executor_v1_DmlAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_DmlAction_descriptor,
+ new java.lang.String[] {
+ "Update", "AutocommitIfSupported", "AutocommitIfSupported",
+ });
+ internal_static_google_spanner_executor_v1_BatchDmlAction_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_google_spanner_executor_v1_BatchDmlAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_BatchDmlAction_descriptor,
+ new java.lang.String[] {
+ "Updates",
+ });
+ internal_static_google_spanner_executor_v1_Value_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_google_spanner_executor_v1_Value_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_Value_descriptor,
+ new java.lang.String[] {
+ "IsNull",
+ "IntValue",
+ "BoolValue",
+ "DoubleValue",
+ "BytesValue",
+ "StringValue",
+ "StructValue",
+ "TimestampValue",
+ "DateDaysValue",
+ "IsCommitTimestamp",
+ "ArrayValue",
+ "ArrayType",
+ "ValueType",
+ "ArrayType",
+ });
+ internal_static_google_spanner_executor_v1_KeyRange_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_google_spanner_executor_v1_KeyRange_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_KeyRange_descriptor,
+ new java.lang.String[] {
+ "Start", "Limit", "Type", "Type",
+ });
+ internal_static_google_spanner_executor_v1_KeySet_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_google_spanner_executor_v1_KeySet_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_KeySet_descriptor,
+ new java.lang.String[] {
+ "Point", "Range", "All",
+ });
+ internal_static_google_spanner_executor_v1_ValueList_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_google_spanner_executor_v1_ValueList_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ValueList_descriptor,
+ new java.lang.String[] {
+ "Value",
+ });
+ internal_static_google_spanner_executor_v1_MutationAction_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_google_spanner_executor_v1_MutationAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_MutationAction_descriptor,
+ new java.lang.String[] {
+ "Mod",
+ });
+ internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor =
+ internal_static_google_spanner_executor_v1_MutationAction_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_MutationAction_InsertArgs_descriptor,
+ new java.lang.String[] {
+ "Column", "Type", "Values",
+ });
+ internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor =
+ internal_static_google_spanner_executor_v1_MutationAction_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_MutationAction_UpdateArgs_descriptor,
+ new java.lang.String[] {
+ "Column", "Type", "Values",
+ });
+ internal_static_google_spanner_executor_v1_MutationAction_Mod_descriptor =
+ internal_static_google_spanner_executor_v1_MutationAction_descriptor
+ .getNestedTypes()
+ .get(2);
+ internal_static_google_spanner_executor_v1_MutationAction_Mod_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_MutationAction_Mod_descriptor,
+ new java.lang.String[] {
+ "Table", "Insert", "Update", "InsertOrUpdate", "Replace", "DeleteKeys",
+ });
+ internal_static_google_spanner_executor_v1_WriteMutationsAction_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_google_spanner_executor_v1_WriteMutationsAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_WriteMutationsAction_descriptor,
+ new java.lang.String[] {
+ "Mutation",
+ });
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor,
+ new java.lang.String[] {
+ "Options", "Update", "Options",
+ });
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor =
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_PartitionedUpdateAction_ExecutePartitionedUpdateOptions_descriptor,
+ new java.lang.String[] {
+ "RpcPriority", "Tag", "RpcPriority", "Tag",
+ });
+ internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_google_spanner_executor_v1_StartTransactionAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_StartTransactionAction_descriptor,
+ new java.lang.String[] {
+ "Concurrency",
+ "Table",
+ "TransactionSeed",
+ "ExecutionOptions",
+ "Concurrency",
+ "ExecutionOptions",
+ });
+ internal_static_google_spanner_executor_v1_Concurrency_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_google_spanner_executor_v1_Concurrency_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_Concurrency_descriptor,
+ new java.lang.String[] {
+ "StalenessSeconds",
+ "MinReadTimestampMicros",
+ "MaxStalenessSeconds",
+ "ExactTimestampMicros",
+ "Strong",
+ "Batch",
+ "SnapshotEpochRead",
+ "SnapshotEpochRootTable",
+ "BatchReadTimestampMicros",
+ "ConcurrencyMode",
+ });
+ internal_static_google_spanner_executor_v1_TableMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_google_spanner_executor_v1_TableMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_TableMetadata_descriptor,
+ new java.lang.String[] {
+ "Name", "Column", "KeyColumn",
+ });
+ internal_static_google_spanner_executor_v1_ColumnMetadata_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_google_spanner_executor_v1_ColumnMetadata_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ColumnMetadata_descriptor,
+ new java.lang.String[] {
+ "Name", "Type",
+ });
+ internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_google_spanner_executor_v1_TransactionExecutionOptions_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_TransactionExecutionOptions_descriptor,
+ new java.lang.String[] {
+ "Optimistic",
+ });
+ internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_google_spanner_executor_v1_FinishTransactionAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_FinishTransactionAction_descriptor,
+ new java.lang.String[] {
+ "Mode",
+ });
+ internal_static_google_spanner_executor_v1_AdminAction_descriptor =
+ getDescriptor().getMessageTypes().get(20);
+ internal_static_google_spanner_executor_v1_AdminAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_AdminAction_descriptor,
+ new java.lang.String[] {
+ "CreateUserInstanceConfig",
+ "UpdateUserInstanceConfig",
+ "DeleteUserInstanceConfig",
+ "GetCloudInstanceConfig",
+ "ListInstanceConfigs",
+ "CreateCloudInstance",
+ "UpdateCloudInstance",
+ "DeleteCloudInstance",
+ "ListCloudInstances",
+ "GetCloudInstance",
+ "CreateCloudDatabase",
+ "UpdateCloudDatabaseDdl",
+ "UpdateCloudDatabase",
+ "DropCloudDatabase",
+ "ListCloudDatabases",
+ "ListCloudDatabaseOperations",
+ "RestoreCloudDatabase",
+ "GetCloudDatabase",
+ "CreateCloudBackup",
+ "CopyCloudBackup",
+ "GetCloudBackup",
+ "UpdateCloudBackup",
+ "DeleteCloudBackup",
+ "ListCloudBackups",
+ "ListCloudBackupOperations",
+ "GetOperation",
+ "CancelOperation",
+ "ReconfigureCloudDatabase",
+ "Action",
+ });
+ internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_descriptor =
+ getDescriptor().getMessageTypes().get(21);
+ internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_descriptor,
+ new java.lang.String[] {
+ "UserConfigId", "ProjectId", "BaseConfigId", "Replicas",
+ });
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_descriptor =
+ getDescriptor().getMessageTypes().get(22);
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_descriptor,
+ new java.lang.String[] {
+ "UserConfigId", "ProjectId", "DisplayName", "Labels", "DisplayName",
+ });
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_LabelsEntry_descriptor =
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_LabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_UpdateUserInstanceConfigAction_LabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor =
+ getDescriptor().getMessageTypes().get(23);
+ internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_GetCloudInstanceConfigAction_descriptor,
+ new java.lang.String[] {
+ "InstanceConfigId", "ProjectId",
+ });
+ internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_descriptor =
+ getDescriptor().getMessageTypes().get(24);
+ internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_descriptor,
+ new java.lang.String[] {
+ "UserConfigId", "ProjectId",
+ });
+ internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor =
+ getDescriptor().getMessageTypes().get(25);
+ internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ListCloudInstanceConfigsAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "PageSize", "PageToken", "PageSize", "PageToken",
+ });
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor =
+ getDescriptor().getMessageTypes().get(26);
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor,
+ new java.lang.String[] {
+ "InstanceId",
+ "ProjectId",
+ "InstanceConfigId",
+ "NodeCount",
+ "ProcessingUnits",
+ "AutoscalingConfig",
+ "Labels",
+ "NodeCount",
+ "ProcessingUnits",
+ "AutoscalingConfig",
+ });
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_LabelsEntry_descriptor =
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_LabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_LabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor =
+ getDescriptor().getMessageTypes().get(27);
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor,
+ new java.lang.String[] {
+ "InstanceId",
+ "ProjectId",
+ "DisplayName",
+ "NodeCount",
+ "ProcessingUnits",
+ "AutoscalingConfig",
+ "Labels",
+ "DisplayName",
+ "NodeCount",
+ "ProcessingUnits",
+ "AutoscalingConfig",
+ });
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_LabelsEntry_descriptor =
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_LabelsEntry_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_UpdateCloudInstanceAction_LabelsEntry_descriptor,
+ new java.lang.String[] {
+ "Key", "Value",
+ });
+ internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_descriptor =
+ getDescriptor().getMessageTypes().get(28);
+ internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_descriptor,
+ new java.lang.String[] {
+ "InstanceId", "ProjectId",
+ });
+ internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_descriptor =
+ getDescriptor().getMessageTypes().get(29);
+ internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_descriptor,
+ new java.lang.String[] {
+ "InstanceId",
+ "ProjectId",
+ "DatabaseId",
+ "SdlStatement",
+ "EncryptionConfig",
+ "Dialect",
+ "ProtoDescriptors",
+ "Dialect",
+ "ProtoDescriptors",
+ });
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor =
+ getDescriptor().getMessageTypes().get(30);
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseDdlAction_descriptor,
+ new java.lang.String[] {
+ "InstanceId",
+ "ProjectId",
+ "DatabaseId",
+ "SdlStatement",
+ "OperationId",
+ "ProtoDescriptors",
+ "ProtoDescriptors",
+ });
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor =
+ getDescriptor().getMessageTypes().get(31);
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_UpdateCloudDatabaseAction_descriptor,
+ new java.lang.String[] {
+ "InstanceId", "ProjectId", "DatabaseName", "EnableDropProtection",
+ });
+ internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_descriptor =
+ getDescriptor().getMessageTypes().get(32);
+ internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_descriptor,
+ new java.lang.String[] {
+ "InstanceId", "ProjectId", "DatabaseId",
+ });
+ internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor =
+ getDescriptor().getMessageTypes().get(33);
+ internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ReconfigureCloudDatabaseAction_descriptor,
+ new java.lang.String[] {
+ "DatabaseUri", "ServingLocations", "DatabaseUri",
+ });
+ internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor =
+ getDescriptor().getMessageTypes().get(34);
+ internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ListCloudDatabasesAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "PageSize", "PageToken",
+ });
+ internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor =
+ getDescriptor().getMessageTypes().get(35);
+ internal_static_google_spanner_executor_v1_ListCloudInstancesAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ListCloudInstancesAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "Filter", "PageSize", "PageToken", "Filter", "PageSize", "PageToken",
+ });
+ internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor =
+ getDescriptor().getMessageTypes().get(36);
+ internal_static_google_spanner_executor_v1_GetCloudInstanceAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_GetCloudInstanceAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId",
+ });
+ internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor =
+ getDescriptor().getMessageTypes().get(37);
+ internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ListCloudDatabaseOperationsAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "Filter", "PageSize", "PageToken",
+ });
+ internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor =
+ getDescriptor().getMessageTypes().get(38);
+ internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_RestoreCloudDatabaseAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "BackupInstanceId", "BackupId", "DatabaseInstanceId", "DatabaseId",
+ });
+ internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor =
+ getDescriptor().getMessageTypes().get(39);
+ internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_GetCloudDatabaseAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "DatabaseId",
+ });
+ internal_static_google_spanner_executor_v1_CreateCloudBackupAction_descriptor =
+ getDescriptor().getMessageTypes().get(40);
+ internal_static_google_spanner_executor_v1_CreateCloudBackupAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CreateCloudBackupAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId",
+ "InstanceId",
+ "BackupId",
+ "DatabaseId",
+ "ExpireTime",
+ "VersionTime",
+ "VersionTime",
+ });
+ internal_static_google_spanner_executor_v1_CopyCloudBackupAction_descriptor =
+ getDescriptor().getMessageTypes().get(41);
+ internal_static_google_spanner_executor_v1_CopyCloudBackupAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CopyCloudBackupAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "BackupId", "SourceBackup", "ExpireTime",
+ });
+ internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor =
+ getDescriptor().getMessageTypes().get(42);
+ internal_static_google_spanner_executor_v1_GetCloudBackupAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_GetCloudBackupAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "BackupId",
+ });
+ internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor =
+ getDescriptor().getMessageTypes().get(43);
+ internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_UpdateCloudBackupAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "BackupId", "ExpireTime",
+ });
+ internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_descriptor =
+ getDescriptor().getMessageTypes().get(44);
+ internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "BackupId",
+ });
+ internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor =
+ getDescriptor().getMessageTypes().get(45);
+ internal_static_google_spanner_executor_v1_ListCloudBackupsAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ListCloudBackupsAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "Filter", "PageSize", "PageToken",
+ });
+ internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor =
+ getDescriptor().getMessageTypes().get(46);
+ internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ListCloudBackupOperationsAction_descriptor,
+ new java.lang.String[] {
+ "ProjectId", "InstanceId", "Filter", "PageSize", "PageToken",
+ });
+ internal_static_google_spanner_executor_v1_GetOperationAction_descriptor =
+ getDescriptor().getMessageTypes().get(47);
+ internal_static_google_spanner_executor_v1_GetOperationAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_GetOperationAction_descriptor,
+ new java.lang.String[] {
+ "Operation",
+ });
+ internal_static_google_spanner_executor_v1_CancelOperationAction_descriptor =
+ getDescriptor().getMessageTypes().get(48);
+ internal_static_google_spanner_executor_v1_CancelOperationAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CancelOperationAction_descriptor,
+ new java.lang.String[] {
+ "Operation",
+ });
+ internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor =
+ getDescriptor().getMessageTypes().get(49);
+ internal_static_google_spanner_executor_v1_StartBatchTransactionAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_StartBatchTransactionAction_descriptor,
+ new java.lang.String[] {
+ "BatchTxnTime", "Tid", "CloudDatabaseRole", "Param",
+ });
+ internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_descriptor =
+ getDescriptor().getMessageTypes().get(50);
+ internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CloseBatchTransactionAction_descriptor,
+ new java.lang.String[] {
+ "Cleanup",
+ });
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor =
+ getDescriptor().getMessageTypes().get(51);
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForReadAction_descriptor,
+ new java.lang.String[] {
+ "Read",
+ "Table",
+ "DesiredBytesPerPartition",
+ "MaxPartitionCount",
+ "DesiredBytesPerPartition",
+ "MaxPartitionCount",
+ });
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor =
+ getDescriptor().getMessageTypes().get(52);
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_GenerateDbPartitionsForQueryAction_descriptor,
+ new java.lang.String[] {
+ "Query", "DesiredBytesPerPartition", "DesiredBytesPerPartition",
+ });
+ internal_static_google_spanner_executor_v1_BatchPartition_descriptor =
+ getDescriptor().getMessageTypes().get(53);
+ internal_static_google_spanner_executor_v1_BatchPartition_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_BatchPartition_descriptor,
+ new java.lang.String[] {
+ "Partition", "PartitionToken", "Table", "Index", "Table", "Index",
+ });
+ internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor =
+ getDescriptor().getMessageTypes().get(54);
+ internal_static_google_spanner_executor_v1_ExecutePartitionAction_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ExecutePartitionAction_descriptor,
+ new java.lang.String[] {
+ "Partition",
+ });
+ internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor =
+ getDescriptor().getMessageTypes().get(55);
+ internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ExecuteChangeStreamQuery_descriptor,
+ new java.lang.String[] {
+ "Name",
+ "StartTime",
+ "EndTime",
+ "PartitionToken",
+ "ReadOptions",
+ "HeartbeatMilliseconds",
+ "DeadlineSeconds",
+ "CloudDatabaseRole",
+ "EndTime",
+ "PartitionToken",
+ "HeartbeatMilliseconds",
+ "DeadlineSeconds",
+ "CloudDatabaseRole",
+ });
+ internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor =
+ getDescriptor().getMessageTypes().get(56);
+ internal_static_google_spanner_executor_v1_SpannerActionOutcome_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_SpannerActionOutcome_descriptor,
+ new java.lang.String[] {
+ "Status",
+ "CommitTime",
+ "ReadResult",
+ "QueryResult",
+ "TransactionRestarted",
+ "BatchTxnId",
+ "DbPartition",
+ "AdminResult",
+ "DmlRowsModified",
+ "ChangeStreamRecords",
+ "Status",
+ "CommitTime",
+ "ReadResult",
+ "QueryResult",
+ "TransactionRestarted",
+ "BatchTxnId",
+ "AdminResult",
+ });
+ internal_static_google_spanner_executor_v1_AdminResult_descriptor =
+ getDescriptor().getMessageTypes().get(57);
+ internal_static_google_spanner_executor_v1_AdminResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_AdminResult_descriptor,
+ new java.lang.String[] {
+ "BackupResponse",
+ "OperationResponse",
+ "DatabaseResponse",
+ "InstanceResponse",
+ "InstanceConfigResponse",
+ });
+ internal_static_google_spanner_executor_v1_CloudBackupResponse_descriptor =
+ getDescriptor().getMessageTypes().get(58);
+ internal_static_google_spanner_executor_v1_CloudBackupResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CloudBackupResponse_descriptor,
+ new java.lang.String[] {
+ "ListedBackups", "ListedBackupOperations", "NextPageToken", "Backup",
+ });
+ internal_static_google_spanner_executor_v1_OperationResponse_descriptor =
+ getDescriptor().getMessageTypes().get(59);
+ internal_static_google_spanner_executor_v1_OperationResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_OperationResponse_descriptor,
+ new java.lang.String[] {
+ "ListedOperations", "NextPageToken", "Operation",
+ });
+ internal_static_google_spanner_executor_v1_CloudInstanceResponse_descriptor =
+ getDescriptor().getMessageTypes().get(60);
+ internal_static_google_spanner_executor_v1_CloudInstanceResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CloudInstanceResponse_descriptor,
+ new java.lang.String[] {
+ "ListedInstances", "NextPageToken", "Instance",
+ });
+ internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_descriptor =
+ getDescriptor().getMessageTypes().get(61);
+ internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_descriptor,
+ new java.lang.String[] {
+ "ListedInstanceConfigs", "NextPageToken", "InstanceConfig",
+ });
+ internal_static_google_spanner_executor_v1_CloudDatabaseResponse_descriptor =
+ getDescriptor().getMessageTypes().get(62);
+ internal_static_google_spanner_executor_v1_CloudDatabaseResponse_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_CloudDatabaseResponse_descriptor,
+ new java.lang.String[] {
+ "ListedDatabases", "ListedDatabaseOperations", "NextPageToken", "Database",
+ });
+ internal_static_google_spanner_executor_v1_ReadResult_descriptor =
+ getDescriptor().getMessageTypes().get(63);
+ internal_static_google_spanner_executor_v1_ReadResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ReadResult_descriptor,
+ new java.lang.String[] {
+ "Table",
+ "Index",
+ "RequestIndex",
+ "Row",
+ "RowType",
+ "Index",
+ "RequestIndex",
+ "RowType",
+ });
+ internal_static_google_spanner_executor_v1_QueryResult_descriptor =
+ getDescriptor().getMessageTypes().get(64);
+ internal_static_google_spanner_executor_v1_QueryResult_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_QueryResult_descriptor,
+ new java.lang.String[] {
+ "Row", "RowType", "RowType",
+ });
+ internal_static_google_spanner_executor_v1_ChangeStreamRecord_descriptor =
+ getDescriptor().getMessageTypes().get(65);
+ internal_static_google_spanner_executor_v1_ChangeStreamRecord_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ChangeStreamRecord_descriptor,
+ new java.lang.String[] {
+ "DataChange", "ChildPartition", "Heartbeat", "Record",
+ });
+ internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor =
+ getDescriptor().getMessageTypes().get(66);
+ internal_static_google_spanner_executor_v1_DataChangeRecord_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor,
+ new java.lang.String[] {
+ "CommitTime",
+ "RecordSequence",
+ "TransactionId",
+ "IsLastRecord",
+ "Table",
+ "ColumnTypes",
+ "Mods",
+ "ModType",
+ "ValueCaptureType",
+ "RecordCount",
+ "PartitionCount",
+ "TransactionTag",
+ "IsSystemTransaction",
+ });
+ internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_descriptor =
+ internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_descriptor,
+ new java.lang.String[] {
+ "Name", "Type", "IsPrimaryKey", "OrdinalPosition",
+ });
+ internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_descriptor =
+ internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor
+ .getNestedTypes()
+ .get(1);
+ internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_descriptor,
+ new java.lang.String[] {
+ "Keys", "NewValues", "OldValues",
+ });
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_descriptor =
+ getDescriptor().getMessageTypes().get(67);
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_descriptor,
+ new java.lang.String[] {
+ "StartTime", "RecordSequence", "ChildPartitions",
+ });
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_descriptor =
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_descriptor
+ .getNestedTypes()
+ .get(0);
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_ChildPartitionsRecord_ChildPartition_descriptor,
+ new java.lang.String[] {
+ "Token", "ParentPartitionTokens",
+ });
+ internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor =
+ getDescriptor().getMessageTypes().get(68);
+ internal_static_google_spanner_executor_v1_HeartbeatRecord_fieldAccessorTable =
+ new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_google_spanner_executor_v1_HeartbeatRecord_descriptor,
+ new java.lang.String[] {
+ "HeartbeatTime",
+ });
+ com.google.protobuf.ExtensionRegistry registry =
+ com.google.protobuf.ExtensionRegistry.newInstance();
+ registry.add(com.google.api.ClientProto.defaultHost);
+ registry.add(com.google.api.FieldBehaviorProto.fieldBehavior);
+ com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor(
+ descriptor, registry);
+ com.google.api.ClientProto.getDescriptor();
+ com.google.api.FieldBehaviorProto.getDescriptor();
+ com.google.longrunning.OperationsProto.getDescriptor();
+ com.google.protobuf.TimestampProto.getDescriptor();
+ com.google.rpc.StatusProto.getDescriptor();
+ com.google.spanner.admin.database.v1.BackupProto.getDescriptor();
+ com.google.spanner.admin.database.v1.CommonProto.getDescriptor();
+ com.google.spanner.admin.database.v1.SpannerDatabaseAdminProto.getDescriptor();
+ com.google.spanner.admin.instance.v1.SpannerInstanceAdminProto.getDescriptor();
+ com.google.spanner.v1.SpannerProto.getDescriptor();
+ com.google.spanner.v1.TypeProto.getDescriptor();
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java
new file mode 100644
index 00000000000..21bb70d4246
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceConfigResponse.java
@@ -0,0 +1,1439 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * CloudInstanceConfigResponse contains results returned by cloud instance + * config related actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloudInstanceConfigResponse} + */ +public final class CloudInstanceConfigResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CloudInstanceConfigResponse) + CloudInstanceConfigResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudInstanceConfigResponse.newBuilder() to construct. + private CloudInstanceConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudInstanceConfigResponse() { + listedInstanceConfigs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudInstanceConfigResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloudInstanceConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CloudInstanceConfigResponse.class, + com.google.spanner.executor.v1.CloudInstanceConfigResponse.Builder.class); + } + + public static final int LISTED_INSTANCE_CONFIGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List+ * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>
+ getListedInstanceConfigsOrBuilderList() {
+ return listedInstanceConfigs_;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ @java.lang.Override
+ public int getListedInstanceConfigsCount() {
+ return listedInstanceConfigs_.size();
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.InstanceConfig getListedInstanceConfigs(int index) {
+ return listedInstanceConfigs_.get(index);
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder
+ getListedInstanceConfigsOrBuilder(int index) {
+ return listedInstanceConfigs_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+
+ public static final int INSTANCE_CONFIG_FIELD_NUMBER = 3;
+ private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_;
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ *
+ * @return Whether the instanceConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasInstanceConfig() {
+ return instanceConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ *
+ * @return The instanceConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() {
+ return instanceConfig_ == null
+ ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()
+ : instanceConfig_;
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder() {
+ return instanceConfig_ == null
+ ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()
+ : instanceConfig_;
+ }
+
+ 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 < listedInstanceConfigs_.size(); i++) {
+ output.writeMessage(1, listedInstanceConfigs_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ if (instanceConfig_ != null) {
+ output.writeMessage(3, getInstanceConfig());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < listedInstanceConfigs_.size(); i++) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeMessageSize(
+ 1, listedInstanceConfigs_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ if (instanceConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstanceConfig());
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CloudInstanceConfigResponse)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CloudInstanceConfigResponse other =
+ (com.google.spanner.executor.v1.CloudInstanceConfigResponse) obj;
+
+ if (!getListedInstanceConfigsList().equals(other.getListedInstanceConfigsList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (hasInstanceConfig() != other.hasInstanceConfig()) return false;
+ if (hasInstanceConfig()) {
+ if (!getInstanceConfig().equals(other.getInstanceConfig())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getListedInstanceConfigsCount() > 0) {
+ hash = (37 * hash) + LISTED_INSTANCE_CONFIGS_FIELD_NUMBER;
+ hash = (53 * hash) + getListedInstanceConfigsList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ if (hasInstanceConfig()) {
+ hash = (37 * hash) + INSTANCE_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceConfig().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse 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.spanner.executor.v1.CloudInstanceConfigResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse 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.spanner.executor.v1.CloudInstanceConfigResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse 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.spanner.executor.v1.CloudInstanceConfigResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse 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.spanner.executor.v1.CloudInstanceConfigResponse 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;
+ }
+ /**
+ *
+ *
+ * + * CloudInstanceConfigResponse contains results returned by cloud instance + * config related actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloudInstanceConfigResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public java.util.List+ * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public int getListedInstanceConfigsCount() {
+ if (listedInstanceConfigsBuilder_ == null) {
+ return listedInstanceConfigs_.size();
+ } else {
+ return listedInstanceConfigsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public com.google.spanner.admin.instance.v1.InstanceConfig getListedInstanceConfigs(int index) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ return listedInstanceConfigs_.get(index);
+ } else {
+ return listedInstanceConfigsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder setListedInstanceConfigs(
+ int index, com.google.spanner.admin.instance.v1.InstanceConfig value) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedInstanceConfigsIsMutable();
+ listedInstanceConfigs_.set(index, value);
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder setListedInstanceConfigs(
+ int index, com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ ensureListedInstanceConfigsIsMutable();
+ listedInstanceConfigs_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder addListedInstanceConfigs(
+ com.google.spanner.admin.instance.v1.InstanceConfig value) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedInstanceConfigsIsMutable();
+ listedInstanceConfigs_.add(value);
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder addListedInstanceConfigs(
+ int index, com.google.spanner.admin.instance.v1.InstanceConfig value) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedInstanceConfigsIsMutable();
+ listedInstanceConfigs_.add(index, value);
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder addListedInstanceConfigs(
+ com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ ensureListedInstanceConfigsIsMutable();
+ listedInstanceConfigs_.add(builderForValue.build());
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder addListedInstanceConfigs(
+ int index, com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ ensureListedInstanceConfigsIsMutable();
+ listedInstanceConfigs_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder addAllListedInstanceConfigs(
+ java.lang.Iterable extends com.google.spanner.admin.instance.v1.InstanceConfig> values) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ ensureListedInstanceConfigsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedInstanceConfigs_);
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder clearListedInstanceConfigs() {
+ if (listedInstanceConfigsBuilder_ == null) {
+ listedInstanceConfigs_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public Builder removeListedInstanceConfigs(int index) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ ensureListedInstanceConfigsIsMutable();
+ listedInstanceConfigs_.remove(index);
+ onChanged();
+ } else {
+ listedInstanceConfigsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder
+ getListedInstanceConfigsBuilder(int index) {
+ return getListedInstanceConfigsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder
+ getListedInstanceConfigsOrBuilder(int index) {
+ if (listedInstanceConfigsBuilder_ == null) {
+ return listedInstanceConfigs_.get(index);
+ } else {
+ return listedInstanceConfigsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public java.util.List extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>
+ getListedInstanceConfigsOrBuilderList() {
+ if (listedInstanceConfigsBuilder_ != null) {
+ return listedInstanceConfigsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(listedInstanceConfigs_);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder
+ addListedInstanceConfigsBuilder() {
+ return getListedInstanceConfigsFieldBuilder()
+ .addBuilder(com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder
+ addListedInstanceConfigsBuilder(int index) {
+ return getListedInstanceConfigsFieldBuilder()
+ .addBuilder(
+ index, com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ public java.util.List+ * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.spanner.admin.instance.v1.InstanceConfig instanceConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.InstanceConfig,
+ com.google.spanner.admin.instance.v1.InstanceConfig.Builder,
+ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>
+ instanceConfigBuilder_;
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ *
+ * @return Whether the instanceConfig field is set.
+ */
+ public boolean hasInstanceConfig() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ *
+ * @return The instanceConfig.
+ */
+ public com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig() {
+ if (instanceConfigBuilder_ == null) {
+ return instanceConfig_ == null
+ ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()
+ : instanceConfig_;
+ } else {
+ return instanceConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ public Builder setInstanceConfig(com.google.spanner.admin.instance.v1.InstanceConfig value) {
+ if (instanceConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceConfig_ = value;
+ } else {
+ instanceConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ public Builder setInstanceConfig(
+ com.google.spanner.admin.instance.v1.InstanceConfig.Builder builderForValue) {
+ if (instanceConfigBuilder_ == null) {
+ instanceConfig_ = builderForValue.build();
+ } else {
+ instanceConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ public Builder mergeInstanceConfig(com.google.spanner.admin.instance.v1.InstanceConfig value) {
+ if (instanceConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && instanceConfig_ != null
+ && instanceConfig_
+ != com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()) {
+ getInstanceConfigBuilder().mergeFrom(value);
+ } else {
+ instanceConfig_ = value;
+ }
+ } else {
+ instanceConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ public Builder clearInstanceConfig() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ instanceConfig_ = null;
+ if (instanceConfigBuilder_ != null) {
+ instanceConfigBuilder_.dispose();
+ instanceConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ public com.google.spanner.admin.instance.v1.InstanceConfig.Builder getInstanceConfigBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getInstanceConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ public com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder
+ getInstanceConfigOrBuilder() {
+ if (instanceConfigBuilder_ != null) {
+ return instanceConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return instanceConfig_ == null
+ ? com.google.spanner.admin.instance.v1.InstanceConfig.getDefaultInstance()
+ : instanceConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.InstanceConfig,
+ com.google.spanner.admin.instance.v1.InstanceConfig.Builder,
+ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>
+ getInstanceConfigFieldBuilder() {
+ if (instanceConfigBuilder_ == null) {
+ instanceConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.InstanceConfig,
+ com.google.spanner.admin.instance.v1.InstanceConfig.Builder,
+ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>(
+ getInstanceConfig(), getParentForChildren(), isClean());
+ instanceConfig_ = null;
+ }
+ return instanceConfigBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CloudInstanceConfigResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CloudInstanceConfigResponse)
+ private static final com.google.spanner.executor.v1.CloudInstanceConfigResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CloudInstanceConfigResponse();
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceConfigResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ java.util.List+ * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ com.google.spanner.admin.instance.v1.InstanceConfig getListedInstanceConfigs(int index);
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ int getListedInstanceConfigsCount();
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ java.util.List extends com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder>
+ getListedInstanceConfigsOrBuilderList();
+ /**
+ *
+ *
+ * + * List of instance configs returned by ListCloudInstanceConfigsAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.InstanceConfig listed_instance_configs = 1;
+ *
+ */
+ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getListedInstanceConfigsOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ *
+ * @return Whether the instanceConfig field is set.
+ */
+ boolean hasInstanceConfig();
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ *
+ * @return The instanceConfig.
+ */
+ com.google.spanner.admin.instance.v1.InstanceConfig getInstanceConfig();
+ /**
+ *
+ *
+ * + * Instance config returned by GetCloudInstanceConfigAction. + *+ * + *
.google.spanner.admin.instance.v1.InstanceConfig instance_config = 3;
+ */
+ com.google.spanner.admin.instance.v1.InstanceConfigOrBuilder getInstanceConfigOrBuilder();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java
new file mode 100644
index 00000000000..20e31f94b9f
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CloudInstanceResponse.java
@@ -0,0 +1,1403 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * CloudInstanceResponse contains results returned by cloud instance related + * actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloudInstanceResponse} + */ +public final class CloudInstanceResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CloudInstanceResponse) + CloudInstanceResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use CloudInstanceResponse.newBuilder() to construct. + private CloudInstanceResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CloudInstanceResponse() { + listedInstances_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CloudInstanceResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloudInstanceResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CloudInstanceResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CloudInstanceResponse.class, + com.google.spanner.executor.v1.CloudInstanceResponse.Builder.class); + } + + public static final int LISTED_INSTANCES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List
+ * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ @java.lang.Override
+ public java.util.List+ * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.spanner.admin.instance.v1.InstanceOrBuilder>
+ getListedInstancesOrBuilderList() {
+ return listedInstances_;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ @java.lang.Override
+ public int getListedInstancesCount() {
+ return listedInstances_.size();
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.Instance getListedInstances(int index) {
+ return listedInstances_.get(index);
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstancesOrBuilder(
+ int index) {
+ return listedInstances_.get(index);
+ }
+
+ public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object nextPageToken_ = "";
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 3;
+ private com.google.spanner.admin.instance.v1.Instance instance_;
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ *
+ * @return Whether the instance field is set.
+ */
+ @java.lang.Override
+ public boolean hasInstance() {
+ return instance_ != null;
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ *
+ * @return The instance.
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.Instance getInstance() {
+ return instance_ == null
+ ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()
+ : instance_;
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() {
+ return instance_ == null
+ ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()
+ : instance_;
+ }
+
+ 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 < listedInstances_.size(); i++) {
+ output.writeMessage(1, listedInstances_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_);
+ }
+ if (instance_ != null) {
+ output.writeMessage(3, getInstance());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < listedInstances_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, listedInstances_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_);
+ }
+ if (instance_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getInstance());
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CloudInstanceResponse)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CloudInstanceResponse other =
+ (com.google.spanner.executor.v1.CloudInstanceResponse) obj;
+
+ if (!getListedInstancesList().equals(other.getListedInstancesList())) return false;
+ if (!getNextPageToken().equals(other.getNextPageToken())) return false;
+ if (hasInstance() != other.hasInstance()) return false;
+ if (hasInstance()) {
+ if (!getInstance().equals(other.getInstance())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getListedInstancesCount() > 0) {
+ hash = (37 * hash) + LISTED_INSTANCES_FIELD_NUMBER;
+ hash = (53 * hash) + getListedInstancesList().hashCode();
+ }
+ hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
+ hash = (53 * hash) + getNextPageToken().hashCode();
+ if (hasInstance()) {
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse 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.spanner.executor.v1.CloudInstanceResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse 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.spanner.executor.v1.CloudInstanceResponse parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse 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.spanner.executor.v1.CloudInstanceResponse parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse 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.spanner.executor.v1.CloudInstanceResponse 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;
+ }
+ /**
+ *
+ *
+ * + * CloudInstanceResponse contains results returned by cloud instance related + * actions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CloudInstanceResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public java.util.List+ * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public int getListedInstancesCount() {
+ if (listedInstancesBuilder_ == null) {
+ return listedInstances_.size();
+ } else {
+ return listedInstancesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public com.google.spanner.admin.instance.v1.Instance getListedInstances(int index) {
+ if (listedInstancesBuilder_ == null) {
+ return listedInstances_.get(index);
+ } else {
+ return listedInstancesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder setListedInstances(
+ int index, com.google.spanner.admin.instance.v1.Instance value) {
+ if (listedInstancesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedInstancesIsMutable();
+ listedInstances_.set(index, value);
+ onChanged();
+ } else {
+ listedInstancesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder setListedInstances(
+ int index, com.google.spanner.admin.instance.v1.Instance.Builder builderForValue) {
+ if (listedInstancesBuilder_ == null) {
+ ensureListedInstancesIsMutable();
+ listedInstances_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedInstancesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder addListedInstances(com.google.spanner.admin.instance.v1.Instance value) {
+ if (listedInstancesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedInstancesIsMutable();
+ listedInstances_.add(value);
+ onChanged();
+ } else {
+ listedInstancesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder addListedInstances(
+ int index, com.google.spanner.admin.instance.v1.Instance value) {
+ if (listedInstancesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureListedInstancesIsMutable();
+ listedInstances_.add(index, value);
+ onChanged();
+ } else {
+ listedInstancesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder addListedInstances(
+ com.google.spanner.admin.instance.v1.Instance.Builder builderForValue) {
+ if (listedInstancesBuilder_ == null) {
+ ensureListedInstancesIsMutable();
+ listedInstances_.add(builderForValue.build());
+ onChanged();
+ } else {
+ listedInstancesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder addListedInstances(
+ int index, com.google.spanner.admin.instance.v1.Instance.Builder builderForValue) {
+ if (listedInstancesBuilder_ == null) {
+ ensureListedInstancesIsMutable();
+ listedInstances_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ listedInstancesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder addAllListedInstances(
+ java.lang.Iterable extends com.google.spanner.admin.instance.v1.Instance> values) {
+ if (listedInstancesBuilder_ == null) {
+ ensureListedInstancesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, listedInstances_);
+ onChanged();
+ } else {
+ listedInstancesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder clearListedInstances() {
+ if (listedInstancesBuilder_ == null) {
+ listedInstances_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ listedInstancesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public Builder removeListedInstances(int index) {
+ if (listedInstancesBuilder_ == null) {
+ ensureListedInstancesIsMutable();
+ listedInstances_.remove(index);
+ onChanged();
+ } else {
+ listedInstancesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public com.google.spanner.admin.instance.v1.Instance.Builder getListedInstancesBuilder(
+ int index) {
+ return getListedInstancesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstancesOrBuilder(
+ int index) {
+ if (listedInstancesBuilder_ == null) {
+ return listedInstances_.get(index);
+ } else {
+ return listedInstancesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public java.util.List extends com.google.spanner.admin.instance.v1.InstanceOrBuilder>
+ getListedInstancesOrBuilderList() {
+ if (listedInstancesBuilder_ != null) {
+ return listedInstancesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(listedInstances_);
+ }
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public com.google.spanner.admin.instance.v1.Instance.Builder addListedInstancesBuilder() {
+ return getListedInstancesFieldBuilder()
+ .addBuilder(com.google.spanner.admin.instance.v1.Instance.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public com.google.spanner.admin.instance.v1.Instance.Builder addListedInstancesBuilder(
+ int index) {
+ return getListedInstancesFieldBuilder()
+ .addBuilder(index, com.google.spanner.admin.instance.v1.Instance.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ public java.util.List+ * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @param value The nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageToken(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNextPageToken() {
+ nextPageToken_ = getDefaultInstance().getNextPageToken();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @param value The bytes for nextPageToken to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ nextPageToken_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private com.google.spanner.admin.instance.v1.Instance instance_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.Instance,
+ com.google.spanner.admin.instance.v1.Instance.Builder,
+ com.google.spanner.admin.instance.v1.InstanceOrBuilder>
+ instanceBuilder_;
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ *
+ * @return Whether the instance field is set.
+ */
+ public boolean hasInstance() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ *
+ * @return The instance.
+ */
+ public com.google.spanner.admin.instance.v1.Instance getInstance() {
+ if (instanceBuilder_ == null) {
+ return instance_ == null
+ ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()
+ : instance_;
+ } else {
+ return instanceBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ public Builder setInstance(com.google.spanner.admin.instance.v1.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instance_ = value;
+ } else {
+ instanceBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ public Builder setInstance(
+ com.google.spanner.admin.instance.v1.Instance.Builder builderForValue) {
+ if (instanceBuilder_ == null) {
+ instance_ = builderForValue.build();
+ } else {
+ instanceBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ public Builder mergeInstance(com.google.spanner.admin.instance.v1.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (((bitField0_ & 0x00000004) != 0)
+ && instance_ != null
+ && instance_ != com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()) {
+ getInstanceBuilder().mergeFrom(value);
+ } else {
+ instance_ = value;
+ }
+ } else {
+ instanceBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ public Builder clearInstance() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ instance_ = null;
+ if (instanceBuilder_ != null) {
+ instanceBuilder_.dispose();
+ instanceBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ public com.google.spanner.admin.instance.v1.Instance.Builder getInstanceBuilder() {
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return getInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ public com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder() {
+ if (instanceBuilder_ != null) {
+ return instanceBuilder_.getMessageOrBuilder();
+ } else {
+ return instance_ == null
+ ? com.google.spanner.admin.instance.v1.Instance.getDefaultInstance()
+ : instance_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.Instance,
+ com.google.spanner.admin.instance.v1.Instance.Builder,
+ com.google.spanner.admin.instance.v1.InstanceOrBuilder>
+ getInstanceFieldBuilder() {
+ if (instanceBuilder_ == null) {
+ instanceBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.Instance,
+ com.google.spanner.admin.instance.v1.Instance.Builder,
+ com.google.spanner.admin.instance.v1.InstanceOrBuilder>(
+ getInstance(), getParentForChildren(), isClean());
+ instance_ = null;
+ }
+ return instanceBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CloudInstanceResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CloudInstanceResponse)
+ private static final com.google.spanner.executor.v1.CloudInstanceResponse DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CloudInstanceResponse();
+ }
+
+ public static com.google.spanner.executor.v1.CloudInstanceResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ java.util.List+ * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ com.google.spanner.admin.instance.v1.Instance getListedInstances(int index);
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ int getListedInstancesCount();
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ java.util.List extends com.google.spanner.admin.instance.v1.InstanceOrBuilder>
+ getListedInstancesOrBuilderList();
+ /**
+ *
+ *
+ * + * List of instances returned by ListCloudInstancesAction. + *+ * + *
repeated .google.spanner.admin.instance.v1.Instance listed_instances = 1;
+ */
+ com.google.spanner.admin.instance.v1.InstanceOrBuilder getListedInstancesOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The nextPageToken.
+ */
+ java.lang.String getNextPageToken();
+ /**
+ *
+ *
+ * + * "next_page_token" can be sent in a subsequent list action + * to fetch more of the matching data. + *+ * + *
string next_page_token = 2;
+ *
+ * @return The bytes for nextPageToken.
+ */
+ com.google.protobuf.ByteString getNextPageTokenBytes();
+
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ *
+ * @return Whether the instance field is set.
+ */
+ boolean hasInstance();
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ *
+ * @return The instance.
+ */
+ com.google.spanner.admin.instance.v1.Instance getInstance();
+ /**
+ *
+ *
+ * + * Instance returned by GetCloudInstanceAction + *+ * + *
.google.spanner.admin.instance.v1.Instance instance = 3;
+ */
+ com.google.spanner.admin.instance.v1.InstanceOrBuilder getInstanceOrBuilder();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java
new file mode 100644
index 00000000000..da69ce0dd65
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/ColumnMetadata.java
@@ -0,0 +1,878 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * ColumnMetadata represents metadata of a single column. + *+ * + * Protobuf type {@code google.spanner.executor.v1.ColumnMetadata} + */ +public final class ColumnMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.ColumnMetadata) + ColumnMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnMetadata.newBuilder() to construct. + private ColumnMetadata(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ColumnMetadata() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColumnMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_ColumnMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_ColumnMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.ColumnMetadata.class, + com.google.spanner.executor.v1.ColumnMetadata.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+ * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 2;
+ private com.google.spanner.v1.Type type_;
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ *
+ * @return Whether the type field is set.
+ */
+ @java.lang.Override
+ public boolean hasType() {
+ return type_ != null;
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public com.google.spanner.v1.Type getType() {
+ return type_ == null ? com.google.spanner.v1.Type.getDefaultInstance() : type_;
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ @java.lang.Override
+ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() {
+ return type_ == null ? com.google.spanner.v1.Type.getDefaultInstance() : type_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (type_ != null) {
+ output.writeMessage(2, getType());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (type_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType());
+ }
+ size += getUnknownFields().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.spanner.executor.v1.ColumnMetadata)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.ColumnMetadata other =
+ (com.google.spanner.executor.v1.ColumnMetadata) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (hasType() != other.hasType()) return false;
+ if (hasType()) {
+ if (!getType().equals(other.getType())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (hasType()) {
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata 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.spanner.executor.v1.ColumnMetadata parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata 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.spanner.executor.v1.ColumnMetadata parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata 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.spanner.executor.v1.ColumnMetadata parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata 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.spanner.executor.v1.ColumnMetadata 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;
+ }
+ /**
+ *
+ *
+ * + * ColumnMetadata represents metadata of a single column. + *+ * + * Protobuf type {@code google.spanner.executor.v1.ColumnMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private com.google.spanner.v1.Type type_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.v1.Type,
+ com.google.spanner.v1.Type.Builder,
+ com.google.spanner.v1.TypeOrBuilder>
+ typeBuilder_;
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ *
+ * @return Whether the type field is set.
+ */
+ public boolean hasType() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ *
+ * @return The type.
+ */
+ public com.google.spanner.v1.Type getType() {
+ if (typeBuilder_ == null) {
+ return type_ == null ? com.google.spanner.v1.Type.getDefaultInstance() : type_;
+ } else {
+ return typeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ public Builder setType(com.google.spanner.v1.Type value) {
+ if (typeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ type_ = value;
+ } else {
+ typeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ public Builder setType(com.google.spanner.v1.Type.Builder builderForValue) {
+ if (typeBuilder_ == null) {
+ type_ = builderForValue.build();
+ } else {
+ typeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ public Builder mergeType(com.google.spanner.v1.Type value) {
+ if (typeBuilder_ == null) {
+ if (((bitField0_ & 0x00000002) != 0)
+ && type_ != null
+ && type_ != com.google.spanner.v1.Type.getDefaultInstance()) {
+ getTypeBuilder().mergeFrom(value);
+ } else {
+ type_ = value;
+ }
+ } else {
+ typeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ public Builder clearType() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ type_ = null;
+ if (typeBuilder_ != null) {
+ typeBuilder_.dispose();
+ typeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ public com.google.spanner.v1.Type.Builder getTypeBuilder() {
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return getTypeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ public com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder() {
+ if (typeBuilder_ != null) {
+ return typeBuilder_.getMessageOrBuilder();
+ } else {
+ return type_ == null ? com.google.spanner.v1.Type.getDefaultInstance() : type_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.v1.Type,
+ com.google.spanner.v1.Type.Builder,
+ com.google.spanner.v1.TypeOrBuilder>
+ getTypeFieldBuilder() {
+ if (typeBuilder_ == null) {
+ typeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.v1.Type,
+ com.google.spanner.v1.Type.Builder,
+ com.google.spanner.v1.TypeOrBuilder>(getType(), getParentForChildren(), isClean());
+ type_ = null;
+ }
+ return typeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.ColumnMetadata)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.ColumnMetadata)
+ private static final com.google.spanner.executor.v1.ColumnMetadata DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.ColumnMetadata();
+ }
+
+ public static com.google.spanner.executor.v1.ColumnMetadata getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ *
+ * @return Whether the type field is set.
+ */
+ boolean hasType();
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ *
+ * @return The type.
+ */
+ com.google.spanner.v1.Type getType();
+ /**
+ *
+ *
+ * + * Column type. + *+ * + *
.google.spanner.v1.Type type = 2;
+ */
+ com.google.spanner.v1.TypeOrBuilder getTypeOrBuilder();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java
new file mode 100644
index 00000000000..8660df865c9
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/Concurrency.java
@@ -0,0 +1,1731 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Concurrency for read-only transactions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.Concurrency} + */ +public final class Concurrency extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.Concurrency) + ConcurrencyOrBuilder { + private static final long serialVersionUID = 0L; + // Use Concurrency.newBuilder() to construct. + private Concurrency(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Concurrency() { + snapshotEpochRootTable_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Concurrency(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_Concurrency_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_Concurrency_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.Concurrency.class, + com.google.spanner.executor.v1.Concurrency.Builder.class); + } + + private int concurrencyModeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object concurrencyMode_; + + public enum ConcurrencyModeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + STALENESS_SECONDS(1), + MIN_READ_TIMESTAMP_MICROS(2), + MAX_STALENESS_SECONDS(3), + EXACT_TIMESTAMP_MICROS(4), + STRONG(5), + BATCH(6), + CONCURRENCYMODE_NOT_SET(0); + private final int value; + + private ConcurrencyModeCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConcurrencyModeCase valueOf(int value) { + return forNumber(value); + } + + public static ConcurrencyModeCase forNumber(int value) { + switch (value) { + case 1: + return STALENESS_SECONDS; + case 2: + return MIN_READ_TIMESTAMP_MICROS; + case 3: + return MAX_STALENESS_SECONDS; + case 4: + return EXACT_TIMESTAMP_MICROS; + case 5: + return STRONG; + case 6: + return BATCH; + case 0: + return CONCURRENCYMODE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConcurrencyModeCase getConcurrencyModeCase() { + return ConcurrencyModeCase.forNumber(concurrencyModeCase_); + } + + public static final int STALENESS_SECONDS_FIELD_NUMBER = 1; + /** + * + * + *
+ * Indicates a read at a consistent timestamp that is specified relative to + * now. That is, if the caller has specified an exact staleness of s + * seconds, we will read at now - s. + *+ * + *
double staleness_seconds = 1;
+ *
+ * @return Whether the stalenessSeconds field is set.
+ */
+ @java.lang.Override
+ public boolean hasStalenessSeconds() {
+ return concurrencyModeCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp that is specified relative to + * now. That is, if the caller has specified an exact staleness of s + * seconds, we will read at now - s. + *+ * + *
double staleness_seconds = 1;
+ *
+ * @return The stalenessSeconds.
+ */
+ @java.lang.Override
+ public double getStalenessSeconds() {
+ if (concurrencyModeCase_ == 1) {
+ return (java.lang.Double) concurrencyMode_;
+ }
+ return 0D;
+ }
+
+ public static final int MIN_READ_TIMESTAMP_MICROS_FIELD_NUMBER = 2;
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that reads at a timestamp >= T. + *+ * + *
int64 min_read_timestamp_micros = 2;
+ *
+ * @return Whether the minReadTimestampMicros field is set.
+ */
+ @java.lang.Override
+ public boolean hasMinReadTimestampMicros() {
+ return concurrencyModeCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that reads at a timestamp >= T. + *+ * + *
int64 min_read_timestamp_micros = 2;
+ *
+ * @return The minReadTimestampMicros.
+ */
+ @java.lang.Override
+ public long getMinReadTimestampMicros() {
+ if (concurrencyModeCase_ == 2) {
+ return (java.lang.Long) concurrencyMode_;
+ }
+ return 0L;
+ }
+
+ public static final int MAX_STALENESS_SECONDS_FIELD_NUMBER = 3;
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that is at most N seconds stale. + *+ * + *
double max_staleness_seconds = 3;
+ *
+ * @return Whether the maxStalenessSeconds field is set.
+ */
+ @java.lang.Override
+ public boolean hasMaxStalenessSeconds() {
+ return concurrencyModeCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that is at most N seconds stale. + *+ * + *
double max_staleness_seconds = 3;
+ *
+ * @return The maxStalenessSeconds.
+ */
+ @java.lang.Override
+ public double getMaxStalenessSeconds() {
+ if (concurrencyModeCase_ == 3) {
+ return (java.lang.Double) concurrencyMode_;
+ }
+ return 0D;
+ }
+
+ public static final int EXACT_TIMESTAMP_MICROS_FIELD_NUMBER = 4;
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp. + *+ * + *
int64 exact_timestamp_micros = 4;
+ *
+ * @return Whether the exactTimestampMicros field is set.
+ */
+ @java.lang.Override
+ public boolean hasExactTimestampMicros() {
+ return concurrencyModeCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp. + *+ * + *
int64 exact_timestamp_micros = 4;
+ *
+ * @return The exactTimestampMicros.
+ */
+ @java.lang.Override
+ public long getExactTimestampMicros() {
+ if (concurrencyModeCase_ == 4) {
+ return (java.lang.Long) concurrencyMode_;
+ }
+ return 0L;
+ }
+
+ public static final int STRONG_FIELD_NUMBER = 5;
+ /**
+ *
+ *
+ * + * Indicates a strong read, must only be set to true, or unset. + *+ * + *
bool strong = 5;
+ *
+ * @return Whether the strong field is set.
+ */
+ @java.lang.Override
+ public boolean hasStrong() {
+ return concurrencyModeCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Indicates a strong read, must only be set to true, or unset. + *+ * + *
bool strong = 5;
+ *
+ * @return The strong.
+ */
+ @java.lang.Override
+ public boolean getStrong() {
+ if (concurrencyModeCase_ == 5) {
+ return (java.lang.Boolean) concurrencyMode_;
+ }
+ return false;
+ }
+
+ public static final int BATCH_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * Indicates a batch read, must only be set to true, or unset. + *+ * + *
bool batch = 6;
+ *
+ * @return Whether the batch field is set.
+ */
+ @java.lang.Override
+ public boolean hasBatch() {
+ return concurrencyModeCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Indicates a batch read, must only be set to true, or unset. + *+ * + *
bool batch = 6;
+ *
+ * @return The batch.
+ */
+ @java.lang.Override
+ public boolean getBatch() {
+ if (concurrencyModeCase_ == 6) {
+ return (java.lang.Boolean) concurrencyMode_;
+ }
+ return false;
+ }
+
+ public static final int SNAPSHOT_EPOCH_READ_FIELD_NUMBER = 7;
+ private boolean snapshotEpochRead_ = false;
+ /**
+ *
+ *
+ * + * True if exact_timestamp_micros is set, and the chosen timestamp is that of + * a snapshot epoch. + *+ * + *
bool snapshot_epoch_read = 7;
+ *
+ * @return The snapshotEpochRead.
+ */
+ @java.lang.Override
+ public boolean getSnapshotEpochRead() {
+ return snapshotEpochRead_;
+ }
+
+ public static final int SNAPSHOT_EPOCH_ROOT_TABLE_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object snapshotEpochRootTable_ = "";
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @return The snapshotEpochRootTable.
+ */
+ @java.lang.Override
+ public java.lang.String getSnapshotEpochRootTable() {
+ java.lang.Object ref = snapshotEpochRootTable_;
+ 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();
+ snapshotEpochRootTable_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @return The bytes for snapshotEpochRootTable.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSnapshotEpochRootTableBytes() {
+ java.lang.Object ref = snapshotEpochRootTable_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ snapshotEpochRootTable_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BATCH_READ_TIMESTAMP_MICROS_FIELD_NUMBER = 9;
+ private long batchReadTimestampMicros_ = 0L;
+ /**
+ *
+ *
+ * + * Set only when batch is true. + *+ * + *
int64 batch_read_timestamp_micros = 9;
+ *
+ * @return The batchReadTimestampMicros.
+ */
+ @java.lang.Override
+ public long getBatchReadTimestampMicros() {
+ return batchReadTimestampMicros_;
+ }
+
+ 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 (concurrencyModeCase_ == 1) {
+ output.writeDouble(1, (double) ((java.lang.Double) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 2) {
+ output.writeInt64(2, (long) ((java.lang.Long) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 3) {
+ output.writeDouble(3, (double) ((java.lang.Double) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 4) {
+ output.writeInt64(4, (long) ((java.lang.Long) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 5) {
+ output.writeBool(5, (boolean) ((java.lang.Boolean) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 6) {
+ output.writeBool(6, (boolean) ((java.lang.Boolean) concurrencyMode_));
+ }
+ if (snapshotEpochRead_ != false) {
+ output.writeBool(7, snapshotEpochRead_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotEpochRootTable_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, snapshotEpochRootTable_);
+ }
+ if (batchReadTimestampMicros_ != 0L) {
+ output.writeInt64(9, batchReadTimestampMicros_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (concurrencyModeCase_ == 1) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeDoubleSize(
+ 1, (double) ((java.lang.Double) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 2) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(
+ 2, (long) ((java.lang.Long) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 3) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeDoubleSize(
+ 3, (double) ((java.lang.Double) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 4) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeInt64Size(
+ 4, (long) ((java.lang.Long) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 5) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(
+ 5, (boolean) ((java.lang.Boolean) concurrencyMode_));
+ }
+ if (concurrencyModeCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(
+ 6, (boolean) ((java.lang.Boolean) concurrencyMode_));
+ }
+ if (snapshotEpochRead_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, snapshotEpochRead_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snapshotEpochRootTable_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, snapshotEpochRootTable_);
+ }
+ if (batchReadTimestampMicros_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, batchReadTimestampMicros_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.Concurrency)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.Concurrency other =
+ (com.google.spanner.executor.v1.Concurrency) obj;
+
+ if (getSnapshotEpochRead() != other.getSnapshotEpochRead()) return false;
+ if (!getSnapshotEpochRootTable().equals(other.getSnapshotEpochRootTable())) return false;
+ if (getBatchReadTimestampMicros() != other.getBatchReadTimestampMicros()) return false;
+ if (!getConcurrencyModeCase().equals(other.getConcurrencyModeCase())) return false;
+ switch (concurrencyModeCase_) {
+ case 1:
+ if (java.lang.Double.doubleToLongBits(getStalenessSeconds())
+ != java.lang.Double.doubleToLongBits(other.getStalenessSeconds())) return false;
+ break;
+ case 2:
+ if (getMinReadTimestampMicros() != other.getMinReadTimestampMicros()) return false;
+ break;
+ case 3:
+ if (java.lang.Double.doubleToLongBits(getMaxStalenessSeconds())
+ != java.lang.Double.doubleToLongBits(other.getMaxStalenessSeconds())) return false;
+ break;
+ case 4:
+ if (getExactTimestampMicros() != other.getExactTimestampMicros()) return false;
+ break;
+ case 5:
+ if (getStrong() != other.getStrong()) return false;
+ break;
+ case 6:
+ if (getBatch() != other.getBatch()) return false;
+ break;
+ case 0:
+ default:
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + SNAPSHOT_EPOCH_READ_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSnapshotEpochRead());
+ hash = (37 * hash) + SNAPSHOT_EPOCH_ROOT_TABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getSnapshotEpochRootTable().hashCode();
+ hash = (37 * hash) + BATCH_READ_TIMESTAMP_MICROS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getBatchReadTimestampMicros());
+ switch (concurrencyModeCase_) {
+ case 1:
+ hash = (37 * hash) + STALENESS_SECONDS_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getStalenessSeconds()));
+ break;
+ case 2:
+ hash = (37 * hash) + MIN_READ_TIMESTAMP_MICROS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMinReadTimestampMicros());
+ break;
+ case 3:
+ hash = (37 * hash) + MAX_STALENESS_SECONDS_FIELD_NUMBER;
+ hash =
+ (53 * hash)
+ + com.google.protobuf.Internal.hashLong(
+ java.lang.Double.doubleToLongBits(getMaxStalenessSeconds()));
+ break;
+ case 4:
+ hash = (37 * hash) + EXACT_TIMESTAMP_MICROS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getExactTimestampMicros());
+ break;
+ case 5:
+ hash = (37 * hash) + STRONG_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStrong());
+ break;
+ case 6:
+ hash = (37 * hash) + BATCH_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBatch());
+ break;
+ case 0:
+ default:
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency 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.spanner.executor.v1.Concurrency parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency 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.spanner.executor.v1.Concurrency parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency 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.spanner.executor.v1.Concurrency parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency 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.spanner.executor.v1.Concurrency 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;
+ }
+ /**
+ *
+ *
+ * + * Concurrency for read-only transactions. + *+ * + * Protobuf type {@code google.spanner.executor.v1.Concurrency} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Indicates a read at a consistent timestamp that is specified relative to + * now. That is, if the caller has specified an exact staleness of s + * seconds, we will read at now - s. + *+ * + *
double staleness_seconds = 1;
+ *
+ * @return Whether the stalenessSeconds field is set.
+ */
+ public boolean hasStalenessSeconds() {
+ return concurrencyModeCase_ == 1;
+ }
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp that is specified relative to + * now. That is, if the caller has specified an exact staleness of s + * seconds, we will read at now - s. + *+ * + *
double staleness_seconds = 1;
+ *
+ * @return The stalenessSeconds.
+ */
+ public double getStalenessSeconds() {
+ if (concurrencyModeCase_ == 1) {
+ return (java.lang.Double) concurrencyMode_;
+ }
+ return 0D;
+ }
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp that is specified relative to + * now. That is, if the caller has specified an exact staleness of s + * seconds, we will read at now - s. + *+ * + *
double staleness_seconds = 1;
+ *
+ * @param value The stalenessSeconds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStalenessSeconds(double value) {
+
+ concurrencyModeCase_ = 1;
+ concurrencyMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp that is specified relative to + * now. That is, if the caller has specified an exact staleness of s + * seconds, we will read at now - s. + *+ * + *
double staleness_seconds = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStalenessSeconds() {
+ if (concurrencyModeCase_ == 1) {
+ concurrencyModeCase_ = 0;
+ concurrencyMode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that reads at a timestamp >= T. + *+ * + *
int64 min_read_timestamp_micros = 2;
+ *
+ * @return Whether the minReadTimestampMicros field is set.
+ */
+ public boolean hasMinReadTimestampMicros() {
+ return concurrencyModeCase_ == 2;
+ }
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that reads at a timestamp >= T. + *+ * + *
int64 min_read_timestamp_micros = 2;
+ *
+ * @return The minReadTimestampMicros.
+ */
+ public long getMinReadTimestampMicros() {
+ if (concurrencyModeCase_ == 2) {
+ return (java.lang.Long) concurrencyMode_;
+ }
+ return 0L;
+ }
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that reads at a timestamp >= T. + *+ * + *
int64 min_read_timestamp_micros = 2;
+ *
+ * @param value The minReadTimestampMicros to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMinReadTimestampMicros(long value) {
+
+ concurrencyModeCase_ = 2;
+ concurrencyMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that reads at a timestamp >= T. + *+ * + *
int64 min_read_timestamp_micros = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMinReadTimestampMicros() {
+ if (concurrencyModeCase_ == 2) {
+ concurrencyModeCase_ = 0;
+ concurrencyMode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that is at most N seconds stale. + *+ * + *
double max_staleness_seconds = 3;
+ *
+ * @return Whether the maxStalenessSeconds field is set.
+ */
+ public boolean hasMaxStalenessSeconds() {
+ return concurrencyModeCase_ == 3;
+ }
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that is at most N seconds stale. + *+ * + *
double max_staleness_seconds = 3;
+ *
+ * @return The maxStalenessSeconds.
+ */
+ public double getMaxStalenessSeconds() {
+ if (concurrencyModeCase_ == 3) {
+ return (java.lang.Double) concurrencyMode_;
+ }
+ return 0D;
+ }
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that is at most N seconds stale. + *+ * + *
double max_staleness_seconds = 3;
+ *
+ * @param value The maxStalenessSeconds to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMaxStalenessSeconds(double value) {
+
+ concurrencyModeCase_ = 3;
+ concurrencyMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that is at most N seconds stale. + *+ * + *
double max_staleness_seconds = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearMaxStalenessSeconds() {
+ if (concurrencyModeCase_ == 3) {
+ concurrencyModeCase_ = 0;
+ concurrencyMode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp. + *+ * + *
int64 exact_timestamp_micros = 4;
+ *
+ * @return Whether the exactTimestampMicros field is set.
+ */
+ public boolean hasExactTimestampMicros() {
+ return concurrencyModeCase_ == 4;
+ }
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp. + *+ * + *
int64 exact_timestamp_micros = 4;
+ *
+ * @return The exactTimestampMicros.
+ */
+ public long getExactTimestampMicros() {
+ if (concurrencyModeCase_ == 4) {
+ return (java.lang.Long) concurrencyMode_;
+ }
+ return 0L;
+ }
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp. + *+ * + *
int64 exact_timestamp_micros = 4;
+ *
+ * @param value The exactTimestampMicros to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExactTimestampMicros(long value) {
+
+ concurrencyModeCase_ = 4;
+ concurrencyMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp. + *+ * + *
int64 exact_timestamp_micros = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearExactTimestampMicros() {
+ if (concurrencyModeCase_ == 4) {
+ concurrencyModeCase_ = 0;
+ concurrencyMode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Indicates a strong read, must only be set to true, or unset. + *+ * + *
bool strong = 5;
+ *
+ * @return Whether the strong field is set.
+ */
+ public boolean hasStrong() {
+ return concurrencyModeCase_ == 5;
+ }
+ /**
+ *
+ *
+ * + * Indicates a strong read, must only be set to true, or unset. + *+ * + *
bool strong = 5;
+ *
+ * @return The strong.
+ */
+ public boolean getStrong() {
+ if (concurrencyModeCase_ == 5) {
+ return (java.lang.Boolean) concurrencyMode_;
+ }
+ return false;
+ }
+ /**
+ *
+ *
+ * + * Indicates a strong read, must only be set to true, or unset. + *+ * + *
bool strong = 5;
+ *
+ * @param value The strong to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStrong(boolean value) {
+
+ concurrencyModeCase_ = 5;
+ concurrencyMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates a strong read, must only be set to true, or unset. + *+ * + *
bool strong = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearStrong() {
+ if (concurrencyModeCase_ == 5) {
+ concurrencyModeCase_ = 0;
+ concurrencyMode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ /**
+ *
+ *
+ * + * Indicates a batch read, must only be set to true, or unset. + *+ * + *
bool batch = 6;
+ *
+ * @return Whether the batch field is set.
+ */
+ public boolean hasBatch() {
+ return concurrencyModeCase_ == 6;
+ }
+ /**
+ *
+ *
+ * + * Indicates a batch read, must only be set to true, or unset. + *+ * + *
bool batch = 6;
+ *
+ * @return The batch.
+ */
+ public boolean getBatch() {
+ if (concurrencyModeCase_ == 6) {
+ return (java.lang.Boolean) concurrencyMode_;
+ }
+ return false;
+ }
+ /**
+ *
+ *
+ * + * Indicates a batch read, must only be set to true, or unset. + *+ * + *
bool batch = 6;
+ *
+ * @param value The batch to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBatch(boolean value) {
+
+ concurrencyModeCase_ = 6;
+ concurrencyMode_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates a batch read, must only be set to true, or unset. + *+ * + *
bool batch = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBatch() {
+ if (concurrencyModeCase_ == 6) {
+ concurrencyModeCase_ = 0;
+ concurrencyMode_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
+ private boolean snapshotEpochRead_;
+ /**
+ *
+ *
+ * + * True if exact_timestamp_micros is set, and the chosen timestamp is that of + * a snapshot epoch. + *+ * + *
bool snapshot_epoch_read = 7;
+ *
+ * @return The snapshotEpochRead.
+ */
+ @java.lang.Override
+ public boolean getSnapshotEpochRead() {
+ return snapshotEpochRead_;
+ }
+ /**
+ *
+ *
+ * + * True if exact_timestamp_micros is set, and the chosen timestamp is that of + * a snapshot epoch. + *+ * + *
bool snapshot_epoch_read = 7;
+ *
+ * @param value The snapshotEpochRead to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSnapshotEpochRead(boolean value) {
+
+ snapshotEpochRead_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * True if exact_timestamp_micros is set, and the chosen timestamp is that of + * a snapshot epoch. + *+ * + *
bool snapshot_epoch_read = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSnapshotEpochRead() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ snapshotEpochRead_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object snapshotEpochRootTable_ = "";
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @return The snapshotEpochRootTable.
+ */
+ public java.lang.String getSnapshotEpochRootTable() {
+ java.lang.Object ref = snapshotEpochRootTable_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ snapshotEpochRootTable_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @return The bytes for snapshotEpochRootTable.
+ */
+ public com.google.protobuf.ByteString getSnapshotEpochRootTableBytes() {
+ java.lang.Object ref = snapshotEpochRootTable_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ snapshotEpochRootTable_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @param value The snapshotEpochRootTable to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSnapshotEpochRootTable(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ snapshotEpochRootTable_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSnapshotEpochRootTable() {
+ snapshotEpochRootTable_ = getDefaultInstance().getSnapshotEpochRootTable();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @param value The bytes for snapshotEpochRootTable to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSnapshotEpochRootTableBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ snapshotEpochRootTable_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ private long batchReadTimestampMicros_;
+ /**
+ *
+ *
+ * + * Set only when batch is true. + *+ * + *
int64 batch_read_timestamp_micros = 9;
+ *
+ * @return The batchReadTimestampMicros.
+ */
+ @java.lang.Override
+ public long getBatchReadTimestampMicros() {
+ return batchReadTimestampMicros_;
+ }
+ /**
+ *
+ *
+ * + * Set only when batch is true. + *+ * + *
int64 batch_read_timestamp_micros = 9;
+ *
+ * @param value The batchReadTimestampMicros to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBatchReadTimestampMicros(long value) {
+
+ batchReadTimestampMicros_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Set only when batch is true. + *+ * + *
int64 batch_read_timestamp_micros = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBatchReadTimestampMicros() {
+ bitField0_ = (bitField0_ & ~0x00000100);
+ batchReadTimestampMicros_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.Concurrency)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.Concurrency)
+ private static final com.google.spanner.executor.v1.Concurrency DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.Concurrency();
+ }
+
+ public static com.google.spanner.executor.v1.Concurrency getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Indicates a read at a consistent timestamp that is specified relative to + * now. That is, if the caller has specified an exact staleness of s + * seconds, we will read at now - s. + *+ * + *
double staleness_seconds = 1;
+ *
+ * @return Whether the stalenessSeconds field is set.
+ */
+ boolean hasStalenessSeconds();
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp that is specified relative to + * now. That is, if the caller has specified an exact staleness of s + * seconds, we will read at now - s. + *+ * + *
double staleness_seconds = 1;
+ *
+ * @return The stalenessSeconds.
+ */
+ double getStalenessSeconds();
+
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that reads at a timestamp >= T. + *+ * + *
int64 min_read_timestamp_micros = 2;
+ *
+ * @return Whether the minReadTimestampMicros field is set.
+ */
+ boolean hasMinReadTimestampMicros();
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that reads at a timestamp >= T. + *+ * + *
int64 min_read_timestamp_micros = 2;
+ *
+ * @return The minReadTimestampMicros.
+ */
+ long getMinReadTimestampMicros();
+
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that is at most N seconds stale. + *+ * + *
double max_staleness_seconds = 3;
+ *
+ * @return Whether the maxStalenessSeconds field is set.
+ */
+ boolean hasMaxStalenessSeconds();
+ /**
+ *
+ *
+ * + * Indicates a boundedly stale read that is at most N seconds stale. + *+ * + *
double max_staleness_seconds = 3;
+ *
+ * @return The maxStalenessSeconds.
+ */
+ double getMaxStalenessSeconds();
+
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp. + *+ * + *
int64 exact_timestamp_micros = 4;
+ *
+ * @return Whether the exactTimestampMicros field is set.
+ */
+ boolean hasExactTimestampMicros();
+ /**
+ *
+ *
+ * + * Indicates a read at a consistent timestamp. + *+ * + *
int64 exact_timestamp_micros = 4;
+ *
+ * @return The exactTimestampMicros.
+ */
+ long getExactTimestampMicros();
+
+ /**
+ *
+ *
+ * + * Indicates a strong read, must only be set to true, or unset. + *+ * + *
bool strong = 5;
+ *
+ * @return Whether the strong field is set.
+ */
+ boolean hasStrong();
+ /**
+ *
+ *
+ * + * Indicates a strong read, must only be set to true, or unset. + *+ * + *
bool strong = 5;
+ *
+ * @return The strong.
+ */
+ boolean getStrong();
+
+ /**
+ *
+ *
+ * + * Indicates a batch read, must only be set to true, or unset. + *+ * + *
bool batch = 6;
+ *
+ * @return Whether the batch field is set.
+ */
+ boolean hasBatch();
+ /**
+ *
+ *
+ * + * Indicates a batch read, must only be set to true, or unset. + *+ * + *
bool batch = 6;
+ *
+ * @return The batch.
+ */
+ boolean getBatch();
+
+ /**
+ *
+ *
+ * + * True if exact_timestamp_micros is set, and the chosen timestamp is that of + * a snapshot epoch. + *+ * + *
bool snapshot_epoch_read = 7;
+ *
+ * @return The snapshotEpochRead.
+ */
+ boolean getSnapshotEpochRead();
+
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @return The snapshotEpochRootTable.
+ */
+ java.lang.String getSnapshotEpochRootTable();
+ /**
+ *
+ *
+ * + * If set, this is a snapshot epoch read constrained to read only the + * specified log scope root table, and its children. Will not be set for full + * database epochs. + *+ * + *
string snapshot_epoch_root_table = 8;
+ *
+ * @return The bytes for snapshotEpochRootTable.
+ */
+ com.google.protobuf.ByteString getSnapshotEpochRootTableBytes();
+
+ /**
+ *
+ *
+ * + * Set only when batch is true. + *+ * + *
int64 batch_read_timestamp_micros = 9;
+ *
+ * @return The batchReadTimestampMicros.
+ */
+ long getBatchReadTimestampMicros();
+
+ com.google.spanner.executor.v1.Concurrency.ConcurrencyModeCase getConcurrencyModeCase();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java
new file mode 100644
index 00000000000..2a9a2c39648
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CopyCloudBackupAction.java
@@ -0,0 +1,1477 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CopyCloudBackupAction} + */ +public final class CopyCloudBackupAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CopyCloudBackupAction) + CopyCloudBackupActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CopyCloudBackupAction.newBuilder() to construct. + private CopyCloudBackupAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CopyCloudBackupAction() { + projectId_ = ""; + instanceId_ = ""; + backupId_ = ""; + sourceBackup_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CopyCloudBackupAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CopyCloudBackupAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CopyCloudBackupAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CopyCloudBackupAction.class, + com.google.spanner.executor.v1.CopyCloudBackupAction.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instanceId_ = "";
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ 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 BACKUP_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object backupId_ = "";
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ @java.lang.Override
+ public java.lang.String getBackupId() {
+ java.lang.Object ref = backupId_;
+ 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();
+ backupId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBackupIdBytes() {
+ java.lang.Object ref = backupId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ backupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCE_BACKUP_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object sourceBackup_ = "";
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @return The sourceBackup.
+ */
+ @java.lang.Override
+ public java.lang.String getSourceBackup() {
+ java.lang.Object ref = sourceBackup_;
+ 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();
+ sourceBackup_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @return The bytes for sourceBackup.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getSourceBackupBytes() {
+ java.lang.Object ref = sourceBackup_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceBackup_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPIRE_TIME_FIELD_NUMBER = 5;
+ private com.google.protobuf.Timestamp expireTime_;
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expireTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireTime() {
+ return expireTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expireTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getExpireTime() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backupId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceBackup_);
+ }
+ if (expireTime_ != null) {
+ output.writeMessage(5, getExpireTime());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceBackup_);
+ }
+ if (expireTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpireTime());
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CopyCloudBackupAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CopyCloudBackupAction other =
+ (com.google.spanner.executor.v1.CopyCloudBackupAction) obj;
+
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getBackupId().equals(other.getBackupId())) return false;
+ if (!getSourceBackup().equals(other.getSourceBackup())) return false;
+ if (hasExpireTime() != other.hasExpireTime()) return false;
+ if (hasExpireTime()) {
+ if (!getExpireTime().equals(other.getExpireTime())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getBackupId().hashCode();
+ hash = (37 * hash) + SOURCE_BACKUP_FIELD_NUMBER;
+ hash = (53 * hash) + getSourceBackup().hashCode();
+ if (hasExpireTime()) {
+ hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction 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.spanner.executor.v1.CopyCloudBackupAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction 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.spanner.executor.v1.CopyCloudBackupAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction 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.spanner.executor.v1.CopyCloudBackupAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction 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.spanner.executor.v1.CopyCloudBackupAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that copies a Cloud Spanner database backup. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CopyCloudBackupAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object backupId_ = "";
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ public java.lang.String getBackupId() {
+ java.lang.Object ref = backupId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ backupId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ public com.google.protobuf.ByteString getBackupIdBytes() {
+ java.lang.Object ref = backupId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ backupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @param value The backupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBackupId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ backupId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBackupId() {
+ backupId_ = getDefaultInstance().getBackupId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @param value The bytes for backupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ backupId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sourceBackup_ = "";
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @return The sourceBackup.
+ */
+ public java.lang.String getSourceBackup() {
+ java.lang.Object ref = sourceBackup_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sourceBackup_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @return The bytes for sourceBackup.
+ */
+ public com.google.protobuf.ByteString getSourceBackupBytes() {
+ java.lang.Object ref = sourceBackup_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ sourceBackup_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @param value The sourceBackup to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceBackup(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ sourceBackup_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSourceBackup() {
+ sourceBackup_ = getDefaultInstance().getSourceBackup();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @param value The bytes for sourceBackup to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ sourceBackup_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp expireTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ expireTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expireTime field is set.
+ */
+ public boolean hasExpireTime() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expireTime.
+ */
+ public com.google.protobuf.Timestamp getExpireTime() {
+ if (expireTimeBuilder_ == null) {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ } else {
+ return expireTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expireTime_ = value;
+ } else {
+ expireTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (expireTimeBuilder_ == null) {
+ expireTime_ = builderForValue.build();
+ } else {
+ expireTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && expireTime_ != null
+ && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getExpireTimeBuilder().mergeFrom(value);
+ } else {
+ expireTime_ = value;
+ }
+ } else {
+ expireTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearExpireTime() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ expireTime_ = null;
+ if (expireTimeBuilder_ != null) {
+ expireTimeBuilder_.dispose();
+ expireTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getExpireTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ if (expireTimeBuilder_ != null) {
+ return expireTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getExpireTimeFieldBuilder() {
+ if (expireTimeBuilder_ == null) {
+ expireTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getExpireTime(), getParentForChildren(), isClean());
+ expireTime_ = null;
+ }
+ return expireTimeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CopyCloudBackupAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CopyCloudBackupAction)
+ private static final com.google.spanner.executor.v1.CopyCloudBackupAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CopyCloudBackupAction();
+ }
+
+ public static com.google.spanner.executor.v1.CopyCloudBackupAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ java.lang.String getBackupId();
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ com.google.protobuf.ByteString getBackupIdBytes();
+
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @return The sourceBackup.
+ */
+ java.lang.String getSourceBackup();
+ /**
+ *
+ *
+ * + * The fully qualified uri of the source backup from which this + * backup was copied. eg. + * "projects/<project_id>/instances/<instance_id>/backups/<backup_id>". + *+ * + *
string source_backup = 4;
+ *
+ * @return The bytes for sourceBackup.
+ */
+ com.google.protobuf.ByteString getSourceBackupBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expireTime field is set.
+ */
+ boolean hasExpireTime();
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expireTime.
+ */
+ com.google.protobuf.Timestamp getExpireTime();
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java
new file mode 100644
index 00000000000..58c05a75645
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudBackupAction.java
@@ -0,0 +1,1777 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CreateCloudBackupAction} + */ +public final class CreateCloudBackupAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CreateCloudBackupAction) + CreateCloudBackupActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCloudBackupAction.newBuilder() to construct. + private CreateCloudBackupAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateCloudBackupAction() { + projectId_ = ""; + instanceId_ = ""; + backupId_ = ""; + databaseId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCloudBackupAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CreateCloudBackupAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CreateCloudBackupAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CreateCloudBackupAction.class, + com.google.spanner.executor.v1.CreateCloudBackupAction.Builder.class); + } + + private int bitField0_; + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instanceId_ = "";
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ 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 BACKUP_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object backupId_ = "";
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ @java.lang.Override
+ public java.lang.String getBackupId() {
+ java.lang.Object ref = backupId_;
+ 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();
+ backupId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBackupIdBytes() {
+ java.lang.Object ref = backupId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ backupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATABASE_ID_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object databaseId_ = "";
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @return The databaseId.
+ */
+ @java.lang.Override
+ public java.lang.String getDatabaseId() {
+ java.lang.Object ref = databaseId_;
+ 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();
+ databaseId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @return The bytes for databaseId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatabaseIdBytes() {
+ java.lang.Object ref = databaseId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ databaseId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int EXPIRE_TIME_FIELD_NUMBER = 5;
+ private com.google.protobuf.Timestamp expireTime_;
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expireTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasExpireTime() {
+ return expireTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expireTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getExpireTime() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_;
+ }
+
+ public static final int VERSION_TIME_FIELD_NUMBER = 6;
+ private com.google.protobuf.Timestamp versionTime_;
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ *
+ * @return Whether the versionTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasVersionTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ *
+ * @return The versionTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getVersionTime() {
+ return versionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_;
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() {
+ return versionTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : versionTime_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backupId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, databaseId_);
+ }
+ if (expireTime_ != null) {
+ output.writeMessage(5, getExpireTime());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeMessage(6, getVersionTime());
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, databaseId_);
+ }
+ if (expireTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getExpireTime());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getVersionTime());
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CreateCloudBackupAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CreateCloudBackupAction other =
+ (com.google.spanner.executor.v1.CreateCloudBackupAction) obj;
+
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getBackupId().equals(other.getBackupId())) return false;
+ if (!getDatabaseId().equals(other.getDatabaseId())) return false;
+ if (hasExpireTime() != other.hasExpireTime()) return false;
+ if (hasExpireTime()) {
+ if (!getExpireTime().equals(other.getExpireTime())) return false;
+ }
+ if (hasVersionTime() != other.hasVersionTime()) return false;
+ if (hasVersionTime()) {
+ if (!getVersionTime().equals(other.getVersionTime())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getBackupId().hashCode();
+ hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getDatabaseId().hashCode();
+ if (hasExpireTime()) {
+ hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getExpireTime().hashCode();
+ }
+ if (hasVersionTime()) {
+ hash = (37 * hash) + VERSION_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getVersionTime().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction 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.spanner.executor.v1.CreateCloudBackupAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction 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.spanner.executor.v1.CreateCloudBackupAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction 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.spanner.executor.v1.CreateCloudBackupAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction 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.spanner.executor.v1.CreateCloudBackupAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database backup. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CreateCloudBackupAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object backupId_ = "";
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ public java.lang.String getBackupId() {
+ java.lang.Object ref = backupId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ backupId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ public com.google.protobuf.ByteString getBackupIdBytes() {
+ java.lang.Object ref = backupId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ backupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @param value The backupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBackupId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ backupId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBackupId() {
+ backupId_ = getDefaultInstance().getBackupId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @param value The bytes for backupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ backupId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object databaseId_ = "";
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @return The databaseId.
+ */
+ public java.lang.String getDatabaseId() {
+ java.lang.Object ref = databaseId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ databaseId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @return The bytes for databaseId.
+ */
+ public com.google.protobuf.ByteString getDatabaseIdBytes() {
+ java.lang.Object ref = databaseId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ databaseId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @param value The databaseId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ databaseId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatabaseId() {
+ databaseId_ = getDefaultInstance().getDatabaseId();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @param value The bytes for databaseId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ databaseId_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Timestamp expireTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ expireTimeBuilder_;
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expireTime field is set.
+ */
+ public boolean hasExpireTime() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expireTime.
+ */
+ public com.google.protobuf.Timestamp getExpireTime() {
+ if (expireTimeBuilder_ == null) {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ } else {
+ return expireTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ expireTime_ = value;
+ } else {
+ expireTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (expireTimeBuilder_ == null) {
+ expireTime_ = builderForValue.build();
+ } else {
+ expireTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) {
+ if (expireTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && expireTime_ != null
+ && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getExpireTimeBuilder().mergeFrom(value);
+ } else {
+ expireTime_ = value;
+ }
+ } else {
+ expireTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public Builder clearExpireTime() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ expireTime_ = null;
+ if (expireTimeBuilder_ != null) {
+ expireTimeBuilder_.dispose();
+ expireTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getExpireTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() {
+ if (expireTimeBuilder_ != null) {
+ return expireTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return expireTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : expireTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
+ * .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getExpireTimeFieldBuilder() {
+ if (expireTimeBuilder_ == null) {
+ expireTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getExpireTime(), getParentForChildren(), isClean());
+ expireTime_ = null;
+ }
+ return expireTimeBuilder_;
+ }
+
+ private com.google.protobuf.Timestamp versionTime_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ versionTimeBuilder_;
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ *
+ * @return Whether the versionTime field is set.
+ */
+ public boolean hasVersionTime() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ *
+ * @return The versionTime.
+ */
+ public com.google.protobuf.Timestamp getVersionTime() {
+ if (versionTimeBuilder_ == null) {
+ return versionTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : versionTime_;
+ } else {
+ return versionTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ public Builder setVersionTime(com.google.protobuf.Timestamp value) {
+ if (versionTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ versionTime_ = value;
+ } else {
+ versionTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ public Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (versionTimeBuilder_ == null) {
+ versionTime_ = builderForValue.build();
+ } else {
+ versionTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ public Builder mergeVersionTime(com.google.protobuf.Timestamp value) {
+ if (versionTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && versionTime_ != null
+ && versionTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getVersionTimeBuilder().mergeFrom(value);
+ } else {
+ versionTime_ = value;
+ }
+ } else {
+ versionTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ public Builder clearVersionTime() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ versionTime_ = null;
+ if (versionTimeBuilder_ != null) {
+ versionTimeBuilder_.dispose();
+ versionTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ public com.google.protobuf.Timestamp.Builder getVersionTimeBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getVersionTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder() {
+ if (versionTimeBuilder_ != null) {
+ return versionTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return versionTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : versionTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getVersionTimeFieldBuilder() {
+ if (versionTimeBuilder_ == null) {
+ versionTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getVersionTime(), getParentForChildren(), isClean());
+ versionTime_ = null;
+ }
+ return versionTimeBuilder_;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CreateCloudBackupAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CreateCloudBackupAction)
+ private static final com.google.spanner.executor.v1.CreateCloudBackupAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CreateCloudBackupAction();
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudBackupAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ java.lang.String getBackupId();
+ /**
+ *
+ *
+ * + * The id of the backup to be created, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ com.google.protobuf.ByteString getBackupIdBytes();
+
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @return The databaseId.
+ */
+ java.lang.String getDatabaseId();
+ /**
+ *
+ *
+ * + * The id of the database from which this backup was + * created, e.g. "db0". Note that this needs to be in the + * same instance as the backup. + *+ * + *
string database_id = 4;
+ *
+ * @return The bytes for databaseId.
+ */
+ com.google.protobuf.ByteString getDatabaseIdBytes();
+
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return Whether the expireTime field is set.
+ */
+ boolean hasExpireTime();
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ *
+ * @return The expireTime.
+ */
+ com.google.protobuf.Timestamp getExpireTime();
+ /**
+ *
+ *
+ * + * Output only. The expiration time of the backup, which must be at least 6 + * hours and at most 366 days from the time the request is received. + *+ * + *
.google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ *
+ */
+ com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ *
+ * @return Whether the versionTime field is set.
+ */
+ boolean hasVersionTime();
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ *
+ * @return The versionTime.
+ */
+ com.google.protobuf.Timestamp getVersionTime();
+ /**
+ *
+ *
+ * + * The version time of the backup, which must be within the time range of + * [earliest_version_time, NOW], where earliest_version_time is retrieved by + * cloud spanner frontend API (See details: go/cs-pitr-lite-design). + *+ * + *
optional .google.protobuf.Timestamp version_time = 6;
+ */
+ com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java
new file mode 100644
index 00000000000..fcf13229671
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudDatabaseAction.java
@@ -0,0 +1,1867 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CreateCloudDatabaseAction} + */ +public final class CreateCloudDatabaseAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CreateCloudDatabaseAction) + CreateCloudDatabaseActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCloudDatabaseAction.newBuilder() to construct. + private CreateCloudDatabaseAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateCloudDatabaseAction() { + instanceId_ = ""; + projectId_ = ""; + databaseId_ = ""; + sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dialect_ = ""; + protoDescriptors_ = com.google.protobuf.ByteString.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCloudDatabaseAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CreateCloudDatabaseAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CreateCloudDatabaseAction.class, + com.google.spanner.executor.v1.CreateCloudDatabaseAction.Builder.class); + } + + private int bitField0_; + public static final int INSTANCE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + /** + * + * + *
+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ 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 PROJECT_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATABASE_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object databaseId_ = "";
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The databaseId.
+ */
+ @java.lang.Override
+ public java.lang.String getDatabaseId() {
+ java.lang.Object ref = databaseId_;
+ 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();
+ databaseId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The bytes for databaseId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatabaseIdBytes() {
+ java.lang.Object ref = databaseId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ databaseId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SDL_STATEMENT_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private com.google.protobuf.LazyStringArrayList sdlStatement_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @return A list containing the sdlStatement.
+ */
+ public com.google.protobuf.ProtocolStringList getSdlStatementList() {
+ return sdlStatement_;
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @return The count of sdlStatement.
+ */
+ public int getSdlStatementCount() {
+ return sdlStatement_.size();
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The sdlStatement at the given index.
+ */
+ public java.lang.String getSdlStatement(int index) {
+ return sdlStatement_.get(index);
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the sdlStatement at the given index.
+ */
+ public com.google.protobuf.ByteString getSdlStatementBytes(int index) {
+ return sdlStatement_.getByteString(index);
+ }
+
+ public static final int ENCRYPTION_CONFIG_FIELD_NUMBER = 5;
+ private com.google.spanner.admin.database.v1.EncryptionConfig encryptionConfig_;
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ *
+ * @return Whether the encryptionConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasEncryptionConfig() {
+ return encryptionConfig_ != null;
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ *
+ * @return The encryptionConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig() {
+ return encryptionConfig_ == null
+ ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()
+ : encryptionConfig_;
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder
+ getEncryptionConfigOrBuilder() {
+ return encryptionConfig_ == null
+ ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()
+ : encryptionConfig_;
+ }
+
+ public static final int DIALECT_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object dialect_ = "";
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return Whether the dialect field is set.
+ */
+ @java.lang.Override
+ public boolean hasDialect() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return The dialect.
+ */
+ @java.lang.Override
+ public java.lang.String getDialect() {
+ java.lang.Object ref = dialect_;
+ 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();
+ dialect_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return The bytes for dialect.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDialectBytes() {
+ java.lang.Object ref = dialect_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dialect_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROTO_DESCRIPTORS_FIELD_NUMBER = 7;
+ private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * optional bytes proto_descriptors = 7;
+ *
+ * @return Whether the protoDescriptors field is set.
+ */
+ @java.lang.Override
+ public boolean hasProtoDescriptors() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ * optional bytes proto_descriptors = 7;
+ *
+ * @return The protoDescriptors.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProtoDescriptors() {
+ return protoDescriptors_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, databaseId_);
+ }
+ for (int i = 0; i < sdlStatement_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sdlStatement_.getRaw(i));
+ }
+ if (encryptionConfig_ != null) {
+ output.writeMessage(5, getEncryptionConfig());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, dialect_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ output.writeBytes(7, protoDescriptors_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, databaseId_);
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < sdlStatement_.size(); i++) {
+ dataSize += computeStringSizeNoTag(sdlStatement_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getSdlStatementList().size();
+ }
+ if (encryptionConfig_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getEncryptionConfig());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, dialect_);
+ }
+ if (((bitField0_ & 0x00000002) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBytesSize(7, protoDescriptors_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CreateCloudDatabaseAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CreateCloudDatabaseAction other =
+ (com.google.spanner.executor.v1.CreateCloudDatabaseAction) obj;
+
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getDatabaseId().equals(other.getDatabaseId())) return false;
+ if (!getSdlStatementList().equals(other.getSdlStatementList())) return false;
+ if (hasEncryptionConfig() != other.hasEncryptionConfig()) return false;
+ if (hasEncryptionConfig()) {
+ if (!getEncryptionConfig().equals(other.getEncryptionConfig())) return false;
+ }
+ if (hasDialect() != other.hasDialect()) return false;
+ if (hasDialect()) {
+ if (!getDialect().equals(other.getDialect())) return false;
+ }
+ if (hasProtoDescriptors() != other.hasProtoDescriptors()) return false;
+ if (hasProtoDescriptors()) {
+ if (!getProtoDescriptors().equals(other.getProtoDescriptors())) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getDatabaseId().hashCode();
+ if (getSdlStatementCount() > 0) {
+ hash = (37 * hash) + SDL_STATEMENT_FIELD_NUMBER;
+ hash = (53 * hash) + getSdlStatementList().hashCode();
+ }
+ if (hasEncryptionConfig()) {
+ hash = (37 * hash) + ENCRYPTION_CONFIG_FIELD_NUMBER;
+ hash = (53 * hash) + getEncryptionConfig().hashCode();
+ }
+ if (hasDialect()) {
+ hash = (37 * hash) + DIALECT_FIELD_NUMBER;
+ hash = (53 * hash) + getDialect().hashCode();
+ }
+ if (hasProtoDescriptors()) {
+ hash = (37 * hash) + PROTO_DESCRIPTORS_FIELD_NUMBER;
+ hash = (53 * hash) + getProtoDescriptors().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction 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.spanner.executor.v1.CreateCloudDatabaseAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction 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.spanner.executor.v1.CreateCloudDatabaseAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction 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.spanner.executor.v1.CreateCloudDatabaseAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction 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.spanner.executor.v1.CreateCloudDatabaseAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a Cloud Spanner database. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CreateCloudDatabaseAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object databaseId_ = "";
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The databaseId.
+ */
+ public java.lang.String getDatabaseId() {
+ java.lang.Object ref = databaseId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ databaseId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The bytes for databaseId.
+ */
+ public com.google.protobuf.ByteString getDatabaseIdBytes() {
+ java.lang.Object ref = databaseId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ databaseId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @param value The databaseId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ databaseId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatabaseId() {
+ databaseId_ = getDefaultInstance().getDatabaseId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @param value The bytes for databaseId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ databaseId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.LazyStringArrayList sdlStatement_ =
+ com.google.protobuf.LazyStringArrayList.emptyList();
+
+ private void ensureSdlStatementIsMutable() {
+ if (!sdlStatement_.isModifiable()) {
+ sdlStatement_ = new com.google.protobuf.LazyStringArrayList(sdlStatement_);
+ }
+ bitField0_ |= 0x00000008;
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @return A list containing the sdlStatement.
+ */
+ public com.google.protobuf.ProtocolStringList getSdlStatementList() {
+ sdlStatement_.makeImmutable();
+ return sdlStatement_;
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @return The count of sdlStatement.
+ */
+ public int getSdlStatementCount() {
+ return sdlStatement_.size();
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The sdlStatement at the given index.
+ */
+ public java.lang.String getSdlStatement(int index) {
+ return sdlStatement_.get(index);
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the sdlStatement at the given index.
+ */
+ public com.google.protobuf.ByteString getSdlStatementBytes(int index) {
+ return sdlStatement_.getByteString(index);
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param index The index to set the value at.
+ * @param value The sdlStatement to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSdlStatement(int index, java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSdlStatementIsMutable();
+ sdlStatement_.set(index, value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param value The sdlStatement to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSdlStatement(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureSdlStatementIsMutable();
+ sdlStatement_.add(value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param values The sdlStatement to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllSdlStatement(java.lang.Iterable+ * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearSdlStatement() {
+ sdlStatement_ = com.google.protobuf.LazyStringArrayList.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ ;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param value The bytes of the sdlStatement to add.
+ * @return This builder for chaining.
+ */
+ public Builder addSdlStatementBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureSdlStatementIsMutable();
+ sdlStatement_.add(value);
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+
+ private com.google.spanner.admin.database.v1.EncryptionConfig encryptionConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.EncryptionConfig,
+ com.google.spanner.admin.database.v1.EncryptionConfig.Builder,
+ com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder>
+ encryptionConfigBuilder_;
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ *
+ * @return Whether the encryptionConfig field is set.
+ */
+ public boolean hasEncryptionConfig() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ *
+ * @return The encryptionConfig.
+ */
+ public com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig() {
+ if (encryptionConfigBuilder_ == null) {
+ return encryptionConfig_ == null
+ ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()
+ : encryptionConfig_;
+ } else {
+ return encryptionConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ public Builder setEncryptionConfig(
+ com.google.spanner.admin.database.v1.EncryptionConfig value) {
+ if (encryptionConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ encryptionConfig_ = value;
+ } else {
+ encryptionConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ public Builder setEncryptionConfig(
+ com.google.spanner.admin.database.v1.EncryptionConfig.Builder builderForValue) {
+ if (encryptionConfigBuilder_ == null) {
+ encryptionConfig_ = builderForValue.build();
+ } else {
+ encryptionConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ public Builder mergeEncryptionConfig(
+ com.google.spanner.admin.database.v1.EncryptionConfig value) {
+ if (encryptionConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000010) != 0)
+ && encryptionConfig_ != null
+ && encryptionConfig_
+ != com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()) {
+ getEncryptionConfigBuilder().mergeFrom(value);
+ } else {
+ encryptionConfig_ = value;
+ }
+ } else {
+ encryptionConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ public Builder clearEncryptionConfig() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ encryptionConfig_ = null;
+ if (encryptionConfigBuilder_ != null) {
+ encryptionConfigBuilder_.dispose();
+ encryptionConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ public com.google.spanner.admin.database.v1.EncryptionConfig.Builder
+ getEncryptionConfigBuilder() {
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return getEncryptionConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ public com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder
+ getEncryptionConfigOrBuilder() {
+ if (encryptionConfigBuilder_ != null) {
+ return encryptionConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return encryptionConfig_ == null
+ ? com.google.spanner.admin.database.v1.EncryptionConfig.getDefaultInstance()
+ : encryptionConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.EncryptionConfig,
+ com.google.spanner.admin.database.v1.EncryptionConfig.Builder,
+ com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder>
+ getEncryptionConfigFieldBuilder() {
+ if (encryptionConfigBuilder_ == null) {
+ encryptionConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.database.v1.EncryptionConfig,
+ com.google.spanner.admin.database.v1.EncryptionConfig.Builder,
+ com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder>(
+ getEncryptionConfig(), getParentForChildren(), isClean());
+ encryptionConfig_ = null;
+ }
+ return encryptionConfigBuilder_;
+ }
+
+ private java.lang.Object dialect_ = "";
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return Whether the dialect field is set.
+ */
+ public boolean hasDialect() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return The dialect.
+ */
+ public java.lang.String getDialect() {
+ java.lang.Object ref = dialect_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dialect_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return The bytes for dialect.
+ */
+ public com.google.protobuf.ByteString getDialectBytes() {
+ java.lang.Object ref = dialect_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ dialect_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @param value The dialect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDialect(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ dialect_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDialect() {
+ dialect_ = getDefaultInstance().getDialect();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @param value The bytes for dialect to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDialectBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ dialect_ = value;
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString protoDescriptors_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * optional bytes proto_descriptors = 7;
+ *
+ * @return Whether the protoDescriptors field is set.
+ */
+ @java.lang.Override
+ public boolean hasProtoDescriptors() {
+ return ((bitField0_ & 0x00000040) != 0);
+ }
+ /**
+ * optional bytes proto_descriptors = 7;
+ *
+ * @return The protoDescriptors.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProtoDescriptors() {
+ return protoDescriptors_;
+ }
+ /**
+ * optional bytes proto_descriptors = 7;
+ *
+ * @param value The protoDescriptors to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProtoDescriptors(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ protoDescriptors_ = value;
+ bitField0_ |= 0x00000040;
+ onChanged();
+ return this;
+ }
+ /**
+ * optional bytes proto_descriptors = 7;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProtoDescriptors() {
+ bitField0_ = (bitField0_ & ~0x00000040);
+ protoDescriptors_ = getDefaultInstance().getProtoDescriptors();
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.CreateCloudDatabaseAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.CreateCloudDatabaseAction)
+ private static final com.google.spanner.executor.v1.CreateCloudDatabaseAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.CreateCloudDatabaseAction();
+ }
+
+ public static com.google.spanner.executor.v1.CreateCloudDatabaseAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The databaseId.
+ */
+ java.lang.String getDatabaseId();
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The bytes for databaseId.
+ */
+ com.google.protobuf.ByteString getDatabaseIdBytes();
+
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @return A list containing the sdlStatement.
+ */
+ java.util.List+ * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @return The count of sdlStatement.
+ */
+ int getSdlStatementCount();
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param index The index of the element to return.
+ * @return The sdlStatement at the given index.
+ */
+ java.lang.String getSdlStatement(int index);
+ /**
+ *
+ *
+ * + * SDL statements to apply to the new database. + *+ * + *
repeated string sdl_statement = 4;
+ *
+ * @param index The index of the value to return.
+ * @return The bytes of the sdlStatement at the given index.
+ */
+ com.google.protobuf.ByteString getSdlStatementBytes(int index);
+
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ *
+ * @return Whether the encryptionConfig field is set.
+ */
+ boolean hasEncryptionConfig();
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ *
+ * @return The encryptionConfig.
+ */
+ com.google.spanner.admin.database.v1.EncryptionConfig getEncryptionConfig();
+ /**
+ *
+ *
+ * + * The KMS key used to encrypt the database to be created if the database + * should be CMEK protected. + *+ * + *
.google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
+ */
+ com.google.spanner.admin.database.v1.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return Whether the dialect field is set.
+ */
+ boolean hasDialect();
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return The dialect.
+ */
+ java.lang.String getDialect();
+ /**
+ *
+ *
+ * + * Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL. + *+ * + *
optional string dialect = 6;
+ *
+ * @return The bytes for dialect.
+ */
+ com.google.protobuf.ByteString getDialectBytes();
+
+ /**
+ * optional bytes proto_descriptors = 7;
+ *
+ * @return Whether the protoDescriptors field is set.
+ */
+ boolean hasProtoDescriptors();
+ /**
+ * optional bytes proto_descriptors = 7;
+ *
+ * @return The protoDescriptors.
+ */
+ com.google.protobuf.ByteString getProtoDescriptors();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java
new file mode 100644
index 00000000000..612ae8e2bb1
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateCloudInstanceAction.java
@@ -0,0 +1,1903 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that creates a Cloud Spanner instance. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CreateCloudInstanceAction} + */ +public final class CreateCloudInstanceAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CreateCloudInstanceAction) + CreateCloudInstanceActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCloudInstanceAction.newBuilder() to construct. + private CreateCloudInstanceAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateCloudInstanceAction() { + instanceId_ = ""; + projectId_ = ""; + instanceConfigId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCloudInstanceAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField(int number) { + switch (number) { + case 5: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CreateCloudInstanceAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CreateCloudInstanceAction.class, + com.google.spanner.executor.v1.CreateCloudInstanceAction.Builder.class); + } + + private int bitField0_; + public static final int INSTANCE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + /** + * + * + *
+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ 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 PROJECT_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_CONFIG_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instanceConfigId_ = "";
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @return The instanceConfigId.
+ */
+ @java.lang.Override
+ public java.lang.String getInstanceConfigId() {
+ java.lang.Object ref = instanceConfigId_;
+ 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();
+ instanceConfigId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @return The bytes for instanceConfigId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getInstanceConfigIdBytes() {
+ java.lang.Object ref = instanceConfigId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceConfigId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NODE_COUNT_FIELD_NUMBER = 4;
+ private int nodeCount_ = 0;
+ /**
+ *
+ *
+ * + * Number of nodes (processing_units should not be set or set to 0 if used). + *+ * + *
optional int32 node_count = 4;
+ *
+ * @return Whether the nodeCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasNodeCount() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Number of nodes (processing_units should not be set or set to 0 if used). + *+ * + *
optional int32 node_count = 4;
+ *
+ * @return The nodeCount.
+ */
+ @java.lang.Override
+ public int getNodeCount() {
+ return nodeCount_;
+ }
+
+ public static final int PROCESSING_UNITS_FIELD_NUMBER = 6;
+ private int processingUnits_ = 0;
+ /**
+ *
+ *
+ * + * Number of processing units (node_count should be set to 0 if used). + *+ * + *
optional int32 processing_units = 6;
+ *
+ * @return Whether the processingUnits field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessingUnits() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Number of processing units (node_count should be set to 0 if used). + *+ * + *
optional int32 processing_units = 6;
+ *
+ * @return The processingUnits.
+ */
+ @java.lang.Override
+ public int getProcessingUnits() {
+ return processingUnits_;
+ }
+
+ public static final int AUTOSCALING_CONFIG_FIELD_NUMBER = 7;
+ private com.google.spanner.admin.instance.v1.AutoscalingConfig autoscalingConfig_;
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ *
+ * @return Whether the autoscalingConfig field is set.
+ */
+ @java.lang.Override
+ public boolean hasAutoscalingConfig() {
+ return ((bitField0_ & 0x00000004) != 0);
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ *
+ * @return The autoscalingConfig.
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.AutoscalingConfig getAutoscalingConfig() {
+ return autoscalingConfig_ == null
+ ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()
+ : autoscalingConfig_;
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder
+ getAutoscalingConfigOrBuilder() {
+ return autoscalingConfig_ == null
+ ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()
+ : autoscalingConfig_;
+ }
+
+ public static final int LABELS_FIELD_NUMBER = 5;
+
+ private static final class LabelsDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ @java.lang.Override
+ public java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * Action that creates a Cloud Spanner instance. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CreateCloudInstanceAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceConfigId_ = "";
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @return The instanceConfigId.
+ */
+ public java.lang.String getInstanceConfigId() {
+ java.lang.Object ref = instanceConfigId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ instanceConfigId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @return The bytes for instanceConfigId.
+ */
+ public com.google.protobuf.ByteString getInstanceConfigIdBytes() {
+ java.lang.Object ref = instanceConfigId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ instanceConfigId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @param value The instanceConfigId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceConfigId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceConfigId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceConfigId() {
+ instanceConfigId_ = getDefaultInstance().getInstanceConfigId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @param value The bytes for instanceConfigId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceConfigIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceConfigId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private int nodeCount_;
+ /**
+ *
+ *
+ * + * Number of nodes (processing_units should not be set or set to 0 if used). + *+ * + *
optional int32 node_count = 4;
+ *
+ * @return Whether the nodeCount field is set.
+ */
+ @java.lang.Override
+ public boolean hasNodeCount() {
+ return ((bitField0_ & 0x00000008) != 0);
+ }
+ /**
+ *
+ *
+ * + * Number of nodes (processing_units should not be set or set to 0 if used). + *+ * + *
optional int32 node_count = 4;
+ *
+ * @return The nodeCount.
+ */
+ @java.lang.Override
+ public int getNodeCount() {
+ return nodeCount_;
+ }
+ /**
+ *
+ *
+ * + * Number of nodes (processing_units should not be set or set to 0 if used). + *+ * + *
optional int32 node_count = 4;
+ *
+ * @param value The nodeCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNodeCount(int value) {
+
+ nodeCount_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of nodes (processing_units should not be set or set to 0 if used). + *+ * + *
optional int32 node_count = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNodeCount() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ nodeCount_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private int processingUnits_;
+ /**
+ *
+ *
+ * + * Number of processing units (node_count should be set to 0 if used). + *+ * + *
optional int32 processing_units = 6;
+ *
+ * @return Whether the processingUnits field is set.
+ */
+ @java.lang.Override
+ public boolean hasProcessingUnits() {
+ return ((bitField0_ & 0x00000010) != 0);
+ }
+ /**
+ *
+ *
+ * + * Number of processing units (node_count should be set to 0 if used). + *+ * + *
optional int32 processing_units = 6;
+ *
+ * @return The processingUnits.
+ */
+ @java.lang.Override
+ public int getProcessingUnits() {
+ return processingUnits_;
+ }
+ /**
+ *
+ *
+ * + * Number of processing units (node_count should be set to 0 if used). + *+ * + *
optional int32 processing_units = 6;
+ *
+ * @param value The processingUnits to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProcessingUnits(int value) {
+
+ processingUnits_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of processing units (node_count should be set to 0 if used). + *+ * + *
optional int32 processing_units = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProcessingUnits() {
+ bitField0_ = (bitField0_ & ~0x00000010);
+ processingUnits_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.spanner.admin.instance.v1.AutoscalingConfig autoscalingConfig_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.AutoscalingConfig,
+ com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder,
+ com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder>
+ autoscalingConfigBuilder_;
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ *
+ * @return Whether the autoscalingConfig field is set.
+ */
+ public boolean hasAutoscalingConfig() {
+ return ((bitField0_ & 0x00000020) != 0);
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ *
+ * @return The autoscalingConfig.
+ */
+ public com.google.spanner.admin.instance.v1.AutoscalingConfig getAutoscalingConfig() {
+ if (autoscalingConfigBuilder_ == null) {
+ return autoscalingConfig_ == null
+ ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()
+ : autoscalingConfig_;
+ } else {
+ return autoscalingConfigBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ public Builder setAutoscalingConfig(
+ com.google.spanner.admin.instance.v1.AutoscalingConfig value) {
+ if (autoscalingConfigBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ autoscalingConfig_ = value;
+ } else {
+ autoscalingConfigBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ public Builder setAutoscalingConfig(
+ com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder builderForValue) {
+ if (autoscalingConfigBuilder_ == null) {
+ autoscalingConfig_ = builderForValue.build();
+ } else {
+ autoscalingConfigBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ public Builder mergeAutoscalingConfig(
+ com.google.spanner.admin.instance.v1.AutoscalingConfig value) {
+ if (autoscalingConfigBuilder_ == null) {
+ if (((bitField0_ & 0x00000020) != 0)
+ && autoscalingConfig_ != null
+ && autoscalingConfig_
+ != com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()) {
+ getAutoscalingConfigBuilder().mergeFrom(value);
+ } else {
+ autoscalingConfig_ = value;
+ }
+ } else {
+ autoscalingConfigBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ public Builder clearAutoscalingConfig() {
+ bitField0_ = (bitField0_ & ~0x00000020);
+ autoscalingConfig_ = null;
+ if (autoscalingConfigBuilder_ != null) {
+ autoscalingConfigBuilder_.dispose();
+ autoscalingConfigBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ public com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder
+ getAutoscalingConfigBuilder() {
+ bitField0_ |= 0x00000020;
+ onChanged();
+ return getAutoscalingConfigFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ public com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder
+ getAutoscalingConfigOrBuilder() {
+ if (autoscalingConfigBuilder_ != null) {
+ return autoscalingConfigBuilder_.getMessageOrBuilder();
+ } else {
+ return autoscalingConfig_ == null
+ ? com.google.spanner.admin.instance.v1.AutoscalingConfig.getDefaultInstance()
+ : autoscalingConfig_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.AutoscalingConfig,
+ com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder,
+ com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder>
+ getAutoscalingConfigFieldBuilder() {
+ if (autoscalingConfigBuilder_ == null) {
+ autoscalingConfigBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.admin.instance.v1.AutoscalingConfig,
+ com.google.spanner.admin.instance.v1.AutoscalingConfig.Builder,
+ com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder>(
+ getAutoscalingConfig(), getParentForChildren(), isClean());
+ autoscalingConfig_ = null;
+ }
+ return autoscalingConfigBuilder_;
+ }
+
+ private com.google.protobuf.MapField+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ @java.lang.Override
+ public boolean containsLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ return internalGetLabels().getMap().containsKey(key);
+ }
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Override
+ @java.lang.Deprecated
+ public java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ @java.lang.Override
+ public java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ @java.lang.Override
+ public /* nullable */ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ @java.lang.Override
+ public java.lang.String getLabelsOrThrow(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ public Builder removeLabels(java.lang.String key) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ internalGetMutableLabels().getMutableMap().remove(key);
+ return this;
+ }
+ /** Use alternate mutation accessors instead. */
+ @java.lang.Deprecated
+ public java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ public Builder putLabels(java.lang.String key, java.lang.String value) {
+ if (key == null) {
+ throw new NullPointerException("map key");
+ }
+ if (value == null) {
+ throw new NullPointerException("map value");
+ }
+ internalGetMutableLabels().getMutableMap().put(key, value);
+ bitField0_ |= 0x00000040;
+ return this;
+ }
+ /**
+ *
+ *
+ * + * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ public Builder putAllLabels(java.util.Map+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @return The instanceConfigId.
+ */
+ java.lang.String getInstanceConfigId();
+ /**
+ *
+ *
+ * + * Instance config ID, e.g. "test-config". + *+ * + *
string instance_config_id = 3;
+ *
+ * @return The bytes for instanceConfigId.
+ */
+ com.google.protobuf.ByteString getInstanceConfigIdBytes();
+
+ /**
+ *
+ *
+ * + * Number of nodes (processing_units should not be set or set to 0 if used). + *+ * + *
optional int32 node_count = 4;
+ *
+ * @return Whether the nodeCount field is set.
+ */
+ boolean hasNodeCount();
+ /**
+ *
+ *
+ * + * Number of nodes (processing_units should not be set or set to 0 if used). + *+ * + *
optional int32 node_count = 4;
+ *
+ * @return The nodeCount.
+ */
+ int getNodeCount();
+
+ /**
+ *
+ *
+ * + * Number of processing units (node_count should be set to 0 if used). + *+ * + *
optional int32 processing_units = 6;
+ *
+ * @return Whether the processingUnits field is set.
+ */
+ boolean hasProcessingUnits();
+ /**
+ *
+ *
+ * + * Number of processing units (node_count should be set to 0 if used). + *+ * + *
optional int32 processing_units = 6;
+ *
+ * @return The processingUnits.
+ */
+ int getProcessingUnits();
+
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ *
+ * @return Whether the autoscalingConfig field is set.
+ */
+ boolean hasAutoscalingConfig();
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ *
+ * @return The autoscalingConfig.
+ */
+ com.google.spanner.admin.instance.v1.AutoscalingConfig getAutoscalingConfig();
+ /**
+ *
+ *
+ * + * The autoscaling config for this instance. If non-empty, an autoscaling + * instance will be created (processing_units and node_count should be set to + * 0 if used). + *+ * + *
optional .google.spanner.admin.instance.v1.AutoscalingConfig autoscaling_config = 7;
+ *
+ */
+ com.google.spanner.admin.instance.v1.AutoscalingConfigOrBuilder getAutoscalingConfigOrBuilder();
+
+ /**
+ *
+ *
+ * + * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ int getLabelsCount();
+ /**
+ *
+ *
+ * + * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ boolean containsLabels(java.lang.String key);
+ /** Use {@link #getLabelsMap()} instead. */
+ @java.lang.Deprecated
+ java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ java.util.Map+ * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ /* nullable */
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
+ /**
+ *
+ *
+ * + * labels. + *+ * + *
map<string, string> labels = 5;
+ */
+ java.lang.String getLabelsOrThrow(java.lang.String key);
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java
new file mode 100644
index 00000000000..2c38021fcd4
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/CreateUserInstanceConfigAction.java
@@ -0,0 +1,1491 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CreateUserInstanceConfigAction} + */ +public final class CreateUserInstanceConfigAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.CreateUserInstanceConfigAction) + CreateUserInstanceConfigActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateUserInstanceConfigAction.newBuilder() to construct. + private CreateUserInstanceConfigAction( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private CreateUserInstanceConfigAction() { + userConfigId_ = ""; + projectId_ = ""; + baseConfigId_ = ""; + replicas_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateUserInstanceConfigAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_CreateUserInstanceConfigAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.CreateUserInstanceConfigAction.class, + com.google.spanner.executor.v1.CreateUserInstanceConfigAction.Builder.class); + } + + public static final int USER_CONFIG_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userConfigId_ = ""; + /** + * + * + *
+ * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The userConfigId.
+ */
+ @java.lang.Override
+ public java.lang.String getUserConfigId() {
+ java.lang.Object ref = userConfigId_;
+ 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();
+ userConfigId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The bytes for userConfigId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUserConfigIdBytes() {
+ java.lang.Object ref = userConfigId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ userConfigId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROJECT_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int BASE_CONFIG_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object baseConfigId_ = "";
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @return The baseConfigId.
+ */
+ @java.lang.Override
+ public java.lang.String getBaseConfigId() {
+ java.lang.Object ref = baseConfigId_;
+ 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();
+ baseConfigId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @return The bytes for baseConfigId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBaseConfigIdBytes() {
+ java.lang.Object ref = baseConfigId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ baseConfigId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REPLICAS_FIELD_NUMBER = 4;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ @java.lang.Override
+ public java.util.List+ * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>
+ getReplicasOrBuilderList() {
+ return replicas_;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ @java.lang.Override
+ public int getReplicasCount() {
+ return replicas_.size();
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) {
+ return replicas_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ @java.lang.Override
+ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(int index) {
+ return replicas_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userConfigId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userConfigId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseConfigId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, baseConfigId_);
+ }
+ for (int i = 0; i < replicas_.size(); i++) {
+ output.writeMessage(4, replicas_.get(i));
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userConfigId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userConfigId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(baseConfigId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, baseConfigId_);
+ }
+ for (int i = 0; i < replicas_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, replicas_.get(i));
+ }
+ size += getUnknownFields().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.spanner.executor.v1.CreateUserInstanceConfigAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.CreateUserInstanceConfigAction other =
+ (com.google.spanner.executor.v1.CreateUserInstanceConfigAction) obj;
+
+ if (!getUserConfigId().equals(other.getUserConfigId())) return false;
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getBaseConfigId().equals(other.getBaseConfigId())) return false;
+ if (!getReplicasList().equals(other.getReplicasList())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + USER_CONFIG_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getUserConfigId().hashCode();
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (37 * hash) + BASE_CONFIG_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getBaseConfigId().hashCode();
+ if (getReplicasCount() > 0) {
+ hash = (37 * hash) + REPLICAS_FIELD_NUMBER;
+ hash = (53 * hash) + getReplicasList().hashCode();
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction 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.spanner.executor.v1.CreateUserInstanceConfigAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction 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.spanner.executor.v1.CreateUserInstanceConfigAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction 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.spanner.executor.v1.CreateUserInstanceConfigAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.CreateUserInstanceConfigAction 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.spanner.executor.v1.CreateUserInstanceConfigAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that creates a user instance config. + *+ * + * Protobuf type {@code google.spanner.executor.v1.CreateUserInstanceConfigAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The userConfigId.
+ */
+ public java.lang.String getUserConfigId() {
+ java.lang.Object ref = userConfigId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ userConfigId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The bytes for userConfigId.
+ */
+ public com.google.protobuf.ByteString getUserConfigIdBytes() {
+ java.lang.Object ref = userConfigId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ userConfigId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @param value The userConfigId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserConfigId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ userConfigId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUserConfigId() {
+ userConfigId_ = getDefaultInstance().getUserConfigId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @param value The bytes for userConfigId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserConfigIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ userConfigId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object baseConfigId_ = "";
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @return The baseConfigId.
+ */
+ public java.lang.String getBaseConfigId() {
+ java.lang.Object ref = baseConfigId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ baseConfigId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @return The bytes for baseConfigId.
+ */
+ public com.google.protobuf.ByteString getBaseConfigIdBytes() {
+ java.lang.Object ref = baseConfigId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ baseConfigId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @param value The baseConfigId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseConfigId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ baseConfigId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBaseConfigId() {
+ baseConfigId_ = getDefaultInstance().getBaseConfigId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @param value The bytes for baseConfigId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBaseConfigIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ baseConfigId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public java.util.List+ * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public int getReplicasCount() {
+ if (replicasBuilder_ == null) {
+ return replicas_.size();
+ } else {
+ return replicasBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index) {
+ if (replicasBuilder_ == null) {
+ return replicas_.get(index);
+ } else {
+ return replicasBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder setReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) {
+ if (replicasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReplicasIsMutable();
+ replicas_.set(index, value);
+ onChanged();
+ } else {
+ replicasBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder setReplicas(
+ int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ replicas_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ replicasBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder addReplicas(com.google.spanner.admin.instance.v1.ReplicaInfo value) {
+ if (replicasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReplicasIsMutable();
+ replicas_.add(value);
+ onChanged();
+ } else {
+ replicasBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder addReplicas(int index, com.google.spanner.admin.instance.v1.ReplicaInfo value) {
+ if (replicasBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureReplicasIsMutable();
+ replicas_.add(index, value);
+ onChanged();
+ } else {
+ replicasBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder addReplicas(
+ com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ replicas_.add(builderForValue.build());
+ onChanged();
+ } else {
+ replicasBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder addReplicas(
+ int index, com.google.spanner.admin.instance.v1.ReplicaInfo.Builder builderForValue) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ replicas_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ replicasBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder addAllReplicas(
+ java.lang.Iterable extends com.google.spanner.admin.instance.v1.ReplicaInfo> values) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, replicas_);
+ onChanged();
+ } else {
+ replicasBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder clearReplicas() {
+ if (replicasBuilder_ == null) {
+ replicas_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000008);
+ onChanged();
+ } else {
+ replicasBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public Builder removeReplicas(int index) {
+ if (replicasBuilder_ == null) {
+ ensureReplicasIsMutable();
+ replicas_.remove(index);
+ onChanged();
+ } else {
+ replicasBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder getReplicasBuilder(int index) {
+ return getReplicasFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(
+ int index) {
+ if (replicasBuilder_ == null) {
+ return replicas_.get(index);
+ } else {
+ return replicasBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public java.util.List extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>
+ getReplicasOrBuilderList() {
+ if (replicasBuilder_ != null) {
+ return replicasBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(replicas_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder() {
+ return getReplicasFieldBuilder()
+ .addBuilder(com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public com.google.spanner.admin.instance.v1.ReplicaInfo.Builder addReplicasBuilder(int index) {
+ return getReplicasFieldBuilder()
+ .addBuilder(index, com.google.spanner.admin.instance.v1.ReplicaInfo.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ public java.util.List+ * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The userConfigId.
+ */
+ java.lang.String getUserConfigId();
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The bytes for userConfigId.
+ */
+ com.google.protobuf.ByteString getUserConfigIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @return The baseConfigId.
+ */
+ java.lang.String getBaseConfigId();
+ /**
+ *
+ *
+ * + * Base config ID, e.g. "test-config". + *+ * + *
string base_config_id = 3;
+ *
+ * @return The bytes for baseConfigId.
+ */
+ com.google.protobuf.ByteString getBaseConfigIdBytes();
+
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ java.util.List+ * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ com.google.spanner.admin.instance.v1.ReplicaInfo getReplicas(int index);
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ int getReplicasCount();
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ java.util.List extends com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder>
+ getReplicasOrBuilderList();
+ /**
+ *
+ *
+ * + * Replicas that should be included in the user config. + *+ * + *
repeated .google.spanner.admin.instance.v1.ReplicaInfo replicas = 4;
+ */
+ com.google.spanner.admin.instance.v1.ReplicaInfoOrBuilder getReplicasOrBuilder(int index);
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java
new file mode 100644
index 00000000000..dee22a9a6ad
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DataChangeRecord.java
@@ -0,0 +1,5341 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * ChangeStream data change record. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord} + */ +public final class DataChangeRecord extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.DataChangeRecord) + DataChangeRecordOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataChangeRecord.newBuilder() to construct. + private DataChangeRecord(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DataChangeRecord() { + recordSequence_ = ""; + transactionId_ = ""; + table_ = ""; + columnTypes_ = java.util.Collections.emptyList(); + mods_ = java.util.Collections.emptyList(); + modType_ = ""; + valueCaptureType_ = ""; + transactionTag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataChangeRecord(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DataChangeRecord_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DataChangeRecord_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.DataChangeRecord.class, + com.google.spanner.executor.v1.DataChangeRecord.Builder.class); + } + + public interface ColumnTypeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.spanner.executor.v1.DataChangeRecord.ColumnType) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+ * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ java.lang.String getName();
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ com.google.protobuf.ByteString getNameBytes();
+
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @return The type.
+ */
+ java.lang.String getType();
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @return The bytes for type.
+ */
+ com.google.protobuf.ByteString getTypeBytes();
+
+ /**
+ *
+ *
+ * + * Whether the column is a primary key column. + *+ * + *
bool is_primary_key = 3;
+ *
+ * @return The isPrimaryKey.
+ */
+ boolean getIsPrimaryKey();
+
+ /**
+ *
+ *
+ * + * The position of the column as defined in the schema. + *+ * + *
int64 ordinal_position = 4;
+ *
+ * @return The ordinalPosition.
+ */
+ long getOrdinalPosition();
+ }
+ /**
+ *
+ *
+ * + * Column types. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord.ColumnType} + */ + public static final class ColumnType extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.DataChangeRecord.ColumnType) + ColumnTypeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnType.newBuilder() to construct. + private ColumnType(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private ColumnType() { + name_ = ""; + type_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ColumnType(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DataChangeRecord_ColumnType_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.DataChangeRecord.ColumnType.class, + com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+ * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ @java.lang.Override
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object type_ = "";
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @return The type.
+ */
+ @java.lang.Override
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ 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();
+ type_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @return The bytes for type.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IS_PRIMARY_KEY_FIELD_NUMBER = 3;
+ private boolean isPrimaryKey_ = false;
+ /**
+ *
+ *
+ * + * Whether the column is a primary key column. + *+ * + *
bool is_primary_key = 3;
+ *
+ * @return The isPrimaryKey.
+ */
+ @java.lang.Override
+ public boolean getIsPrimaryKey() {
+ return isPrimaryKey_;
+ }
+
+ public static final int ORDINAL_POSITION_FIELD_NUMBER = 4;
+ private long ordinalPosition_ = 0L;
+ /**
+ *
+ *
+ * + * The position of the column as defined in the schema. + *+ * + *
int64 ordinal_position = 4;
+ *
+ * @return The ordinalPosition.
+ */
+ @java.lang.Override
+ public long getOrdinalPosition() {
+ return ordinalPosition_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
+ }
+ if (isPrimaryKey_ != false) {
+ output.writeBool(3, isPrimaryKey_);
+ }
+ if (ordinalPosition_ != 0L) {
+ output.writeInt64(4, ordinalPosition_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(type_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
+ }
+ if (isPrimaryKey_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isPrimaryKey_);
+ }
+ if (ordinalPosition_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, ordinalPosition_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.DataChangeRecord.ColumnType)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnType other =
+ (com.google.spanner.executor.v1.DataChangeRecord.ColumnType) obj;
+
+ if (!getName().equals(other.getName())) return false;
+ if (!getType().equals(other.getType())) return false;
+ if (getIsPrimaryKey() != other.getIsPrimaryKey()) return false;
+ if (getOrdinalPosition() != other.getOrdinalPosition()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ hash = (37 * hash) + IS_PRIMARY_KEY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPrimaryKey());
+ hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getOrdinalPosition());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType 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.spanner.executor.v1.DataChangeRecord.ColumnType parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType 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.spanner.executor.v1.DataChangeRecord.ColumnType parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType 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.spanner.executor.v1.DataChangeRecord.ColumnType parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType 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.spanner.executor.v1.DataChangeRecord.ColumnType 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;
+ }
+ /**
+ *
+ *
+ * + * Column types. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord.ColumnType} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+ name_ = getDefaultInstance().getName();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column name. + *+ * + *
string name = 1;
+ *
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ name_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object type_ = "";
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @return The type.
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @return The bytes for type.
+ */
+ public com.google.protobuf.ByteString getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ type_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+ type_ = getDefaultInstance().getType();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column type in JSON. + *+ * + *
string type = 2;
+ *
+ * @param value The bytes for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ type_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private boolean isPrimaryKey_;
+ /**
+ *
+ *
+ * + * Whether the column is a primary key column. + *+ * + *
bool is_primary_key = 3;
+ *
+ * @return The isPrimaryKey.
+ */
+ @java.lang.Override
+ public boolean getIsPrimaryKey() {
+ return isPrimaryKey_;
+ }
+ /**
+ *
+ *
+ * + * Whether the column is a primary key column. + *+ * + *
bool is_primary_key = 3;
+ *
+ * @param value The isPrimaryKey to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsPrimaryKey(boolean value) {
+
+ isPrimaryKey_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Whether the column is a primary key column. + *+ * + *
bool is_primary_key = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIsPrimaryKey() {
+ bitField0_ = (bitField0_ & ~0x00000004);
+ isPrimaryKey_ = false;
+ onChanged();
+ return this;
+ }
+
+ private long ordinalPosition_;
+ /**
+ *
+ *
+ * + * The position of the column as defined in the schema. + *+ * + *
int64 ordinal_position = 4;
+ *
+ * @return The ordinalPosition.
+ */
+ @java.lang.Override
+ public long getOrdinalPosition() {
+ return ordinalPosition_;
+ }
+ /**
+ *
+ *
+ * + * The position of the column as defined in the schema. + *+ * + *
int64 ordinal_position = 4;
+ *
+ * @param value The ordinalPosition to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOrdinalPosition(long value) {
+
+ ordinalPosition_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The position of the column as defined in the schema. + *+ * + *
int64 ordinal_position = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOrdinalPosition() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ ordinalPosition_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.DataChangeRecord.ColumnType)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.DataChangeRecord.ColumnType)
+ private static final com.google.spanner.executor.v1.DataChangeRecord.ColumnType
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DataChangeRecord.ColumnType();
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.ColumnType getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @return The keys.
+ */
+ java.lang.String getKeys();
+ /**
+ *
+ *
+ * + * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @return The bytes for keys.
+ */
+ com.google.protobuf.ByteString getKeysBytes();
+
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @return The newValues.
+ */
+ java.lang.String getNewValues();
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @return The bytes for newValues.
+ */
+ com.google.protobuf.ByteString getNewValuesBytes();
+
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @return The oldValues.
+ */
+ java.lang.String getOldValues();
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @return The bytes for oldValues.
+ */
+ com.google.protobuf.ByteString getOldValuesBytes();
+ }
+ /**
+ *
+ *
+ * + * Describes the changes that were made. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord.Mod} + */ + public static final class Mod extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.DataChangeRecord.Mod) + ModOrBuilder { + private static final long serialVersionUID = 0L; + // Use Mod.newBuilder() to construct. + private Mod(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private Mod() { + keys_ = ""; + newValues_ = ""; + oldValues_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Mod(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DataChangeRecord_Mod_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.DataChangeRecord.Mod.class, + com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder.class); + } + + public static final int KEYS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object keys_ = ""; + /** + * + * + *
+ * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @return The keys.
+ */
+ @java.lang.Override
+ public java.lang.String getKeys() {
+ java.lang.Object ref = keys_;
+ 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();
+ keys_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @return The bytes for keys.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getKeysBytes() {
+ java.lang.Object ref = keys_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keys_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int NEW_VALUES_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object newValues_ = "";
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @return The newValues.
+ */
+ @java.lang.Override
+ public java.lang.String getNewValues() {
+ java.lang.Object ref = newValues_;
+ 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();
+ newValues_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @return The bytes for newValues.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getNewValuesBytes() {
+ java.lang.Object ref = newValues_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ newValues_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OLD_VALUES_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object oldValues_ = "";
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @return The oldValues.
+ */
+ @java.lang.Override
+ public java.lang.String getOldValues() {
+ java.lang.Object ref = oldValues_;
+ 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();
+ oldValues_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @return The bytes for oldValues.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getOldValuesBytes() {
+ java.lang.Object ref = oldValues_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ oldValues_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keys_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keys_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newValues_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, newValues_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldValues_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, oldValues_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keys_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keys_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newValues_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, newValues_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oldValues_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, oldValues_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.DataChangeRecord.Mod)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.DataChangeRecord.Mod other =
+ (com.google.spanner.executor.v1.DataChangeRecord.Mod) obj;
+
+ if (!getKeys().equals(other.getKeys())) return false;
+ if (!getNewValues().equals(other.getNewValues())) return false;
+ if (!getOldValues().equals(other.getOldValues())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEYS_FIELD_NUMBER;
+ hash = (53 * hash) + getKeys().hashCode();
+ hash = (37 * hash) + NEW_VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getNewValues().hashCode();
+ hash = (37 * hash) + OLD_VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getOldValues().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod 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.spanner.executor.v1.DataChangeRecord.Mod parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod 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.spanner.executor.v1.DataChangeRecord.Mod parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod 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.spanner.executor.v1.DataChangeRecord.Mod parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod 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.spanner.executor.v1.DataChangeRecord.Mod 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;
+ }
+ /**
+ *
+ *
+ * + * Describes the changes that were made. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord.Mod} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @return The keys.
+ */
+ public java.lang.String getKeys() {
+ java.lang.Object ref = keys_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ keys_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @return The bytes for keys.
+ */
+ public com.google.protobuf.ByteString getKeysBytes() {
+ java.lang.Object ref = keys_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ keys_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @param value The keys to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeys(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ keys_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearKeys() {
+ keys_ = getDefaultInstance().getKeys();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The primary key values in JSON. + *+ * + *
string keys = 1;
+ *
+ * @param value The bytes for keys to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeysBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ keys_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object newValues_ = "";
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @return The newValues.
+ */
+ public java.lang.String getNewValues() {
+ java.lang.Object ref = newValues_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ newValues_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @return The bytes for newValues.
+ */
+ public com.google.protobuf.ByteString getNewValuesBytes() {
+ java.lang.Object ref = newValues_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ newValues_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @param value The newValues to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNewValues(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ newValues_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearNewValues() {
+ newValues_ = getDefaultInstance().getNewValues();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The new values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string new_values = 2;
+ *
+ * @param value The bytes for newValues to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNewValuesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ newValues_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object oldValues_ = "";
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @return The oldValues.
+ */
+ public java.lang.String getOldValues() {
+ java.lang.Object ref = oldValues_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ oldValues_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @return The bytes for oldValues.
+ */
+ public com.google.protobuf.ByteString getOldValuesBytes() {
+ java.lang.Object ref = oldValues_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ oldValues_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @param value The oldValues to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOldValues(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ oldValues_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearOldValues() {
+ oldValues_ = getDefaultInstance().getOldValues();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The old values of the changed columns in JSON. Only contain the non-key + * columns. + *+ * + *
string old_values = 3;
+ *
+ * @param value The bytes for oldValues to set.
+ * @return This builder for chaining.
+ */
+ public Builder setOldValuesBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ oldValues_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.DataChangeRecord.Mod)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.DataChangeRecord.Mod)
+ private static final com.google.spanner.executor.v1.DataChangeRecord.Mod DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DataChangeRecord.Mod();
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord.Mod getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ *
+ * @return Whether the commitTime field is set.
+ */
+ @java.lang.Override
+ public boolean hasCommitTime() {
+ return commitTime_ != null;
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ *
+ * @return The commitTime.
+ */
+ @java.lang.Override
+ public com.google.protobuf.Timestamp getCommitTime() {
+ return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_;
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ @java.lang.Override
+ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
+ return commitTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : commitTime_;
+ }
+
+ public static final int RECORD_SEQUENCE_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object recordSequence_ = "";
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The recordSequence.
+ */
+ @java.lang.Override
+ public java.lang.String getRecordSequence() {
+ java.lang.Object ref = recordSequence_;
+ 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();
+ recordSequence_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The bytes for recordSequence.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getRecordSequenceBytes() {
+ java.lang.Object ref = recordSequence_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ recordSequence_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TRANSACTION_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object transactionId_ = "";
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @return The transactionId.
+ */
+ @java.lang.Override
+ public java.lang.String getTransactionId() {
+ java.lang.Object ref = transactionId_;
+ 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();
+ transactionId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @return The bytes for transactionId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTransactionIdBytes() {
+ java.lang.Object ref = transactionId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ transactionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IS_LAST_RECORD_FIELD_NUMBER = 4;
+ private boolean isLastRecord_ = false;
+ /**
+ *
+ *
+ * + * Indicates whether this is the last record for a transaction in the current + * partition. + *+ * + *
bool is_last_record = 4;
+ *
+ * @return The isLastRecord.
+ */
+ @java.lang.Override
+ public boolean getIsLastRecord() {
+ return isLastRecord_;
+ }
+
+ public static final int TABLE_FIELD_NUMBER = 5;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object table_ = "";
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @return The table.
+ */
+ @java.lang.Override
+ public java.lang.String getTable() {
+ java.lang.Object ref = table_;
+ 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();
+ table_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @return The bytes for table.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTableBytes() {
+ java.lang.Object ref = table_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ table_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int COLUMN_TYPES_FIELD_NUMBER = 6;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ @java.lang.Override
+ public java.util.List+ * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ @java.lang.Override
+ public java.util.List<
+ ? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder>
+ getColumnTypesOrBuilderList() {
+ return columnTypes_;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ @java.lang.Override
+ public int getColumnTypesCount() {
+ return columnTypes_.size();
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType getColumnTypes(int index) {
+ return columnTypes_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder
+ getColumnTypesOrBuilder(int index) {
+ return columnTypes_.get(index);
+ }
+
+ public static final int MODS_FIELD_NUMBER = 7;
+
+ @SuppressWarnings("serial")
+ private java.util.List+ * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ @java.lang.Override
+ public java.util.List+ * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ @java.lang.Override
+ public java.util.List extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder>
+ getModsOrBuilderList() {
+ return mods_;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ @java.lang.Override
+ public int getModsCount() {
+ return mods_.size();
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DataChangeRecord.Mod getMods(int index) {
+ return mods_.get(index);
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBuilder(int index) {
+ return mods_.get(index);
+ }
+
+ public static final int MOD_TYPE_FIELD_NUMBER = 8;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object modType_ = "";
+ /**
+ *
+ *
+ * + * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @return The modType.
+ */
+ @java.lang.Override
+ public java.lang.String getModType() {
+ java.lang.Object ref = modType_;
+ 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();
+ modType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @return The bytes for modType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getModTypeBytes() {
+ java.lang.Object ref = modType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ modType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_CAPTURE_TYPE_FIELD_NUMBER = 9;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object valueCaptureType_ = "";
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @return The valueCaptureType.
+ */
+ @java.lang.Override
+ public java.lang.String getValueCaptureType() {
+ java.lang.Object ref = valueCaptureType_;
+ 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();
+ valueCaptureType_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @return The bytes for valueCaptureType.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getValueCaptureTypeBytes() {
+ java.lang.Object ref = valueCaptureType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ valueCaptureType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RECORD_COUNT_FIELD_NUMBER = 10;
+ private long recordCount_ = 0L;
+ /**
+ *
+ *
+ * + * Number of records in transactions. + *+ * + *
int64 record_count = 10;
+ *
+ * @return The recordCount.
+ */
+ @java.lang.Override
+ public long getRecordCount() {
+ return recordCount_;
+ }
+
+ public static final int PARTITION_COUNT_FIELD_NUMBER = 11;
+ private long partitionCount_ = 0L;
+ /**
+ *
+ *
+ * + * Number of partitions in transactions. + *+ * + *
int64 partition_count = 11;
+ *
+ * @return The partitionCount.
+ */
+ @java.lang.Override
+ public long getPartitionCount() {
+ return partitionCount_;
+ }
+
+ public static final int TRANSACTION_TAG_FIELD_NUMBER = 12;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object transactionTag_ = "";
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @return The transactionTag.
+ */
+ @java.lang.Override
+ public java.lang.String getTransactionTag() {
+ java.lang.Object ref = transactionTag_;
+ 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();
+ transactionTag_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @return The bytes for transactionTag.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getTransactionTagBytes() {
+ java.lang.Object ref = transactionTag_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ transactionTag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int IS_SYSTEM_TRANSACTION_FIELD_NUMBER = 13;
+ private boolean isSystemTransaction_ = false;
+ /**
+ *
+ *
+ * + * Whether the transaction is a system transactionn. + *+ * + *
bool is_system_transaction = 13;
+ *
+ * @return The isSystemTransaction.
+ */
+ @java.lang.Override
+ public boolean getIsSystemTransaction() {
+ return isSystemTransaction_;
+ }
+
+ 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 (commitTime_ != null) {
+ output.writeMessage(1, getCommitTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, recordSequence_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, transactionId_);
+ }
+ if (isLastRecord_ != false) {
+ output.writeBool(4, isLastRecord_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, table_);
+ }
+ for (int i = 0; i < columnTypes_.size(); i++) {
+ output.writeMessage(6, columnTypes_.get(i));
+ }
+ for (int i = 0; i < mods_.size(); i++) {
+ output.writeMessage(7, mods_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 8, modType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valueCaptureType_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 9, valueCaptureType_);
+ }
+ if (recordCount_ != 0L) {
+ output.writeInt64(10, recordCount_);
+ }
+ if (partitionCount_ != 0L) {
+ output.writeInt64(11, partitionCount_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionTag_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 12, transactionTag_);
+ }
+ if (isSystemTransaction_ != false) {
+ output.writeBool(13, isSystemTransaction_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (commitTime_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCommitTime());
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(recordSequence_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, recordSequence_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, transactionId_);
+ }
+ if (isLastRecord_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isLastRecord_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(table_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, table_);
+ }
+ for (int i = 0; i < columnTypes_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, columnTypes_.get(i));
+ }
+ for (int i = 0; i < mods_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, mods_.get(i));
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(modType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, modType_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(valueCaptureType_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, valueCaptureType_);
+ }
+ if (recordCount_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(10, recordCount_);
+ }
+ if (partitionCount_ != 0L) {
+ size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, partitionCount_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(transactionTag_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, transactionTag_);
+ }
+ if (isSystemTransaction_ != false) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, isSystemTransaction_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.DataChangeRecord)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.DataChangeRecord other =
+ (com.google.spanner.executor.v1.DataChangeRecord) obj;
+
+ if (hasCommitTime() != other.hasCommitTime()) return false;
+ if (hasCommitTime()) {
+ if (!getCommitTime().equals(other.getCommitTime())) return false;
+ }
+ if (!getRecordSequence().equals(other.getRecordSequence())) return false;
+ if (!getTransactionId().equals(other.getTransactionId())) return false;
+ if (getIsLastRecord() != other.getIsLastRecord()) return false;
+ if (!getTable().equals(other.getTable())) return false;
+ if (!getColumnTypesList().equals(other.getColumnTypesList())) return false;
+ if (!getModsList().equals(other.getModsList())) return false;
+ if (!getModType().equals(other.getModType())) return false;
+ if (!getValueCaptureType().equals(other.getValueCaptureType())) return false;
+ if (getRecordCount() != other.getRecordCount()) return false;
+ if (getPartitionCount() != other.getPartitionCount()) return false;
+ if (!getTransactionTag().equals(other.getTransactionTag())) return false;
+ if (getIsSystemTransaction() != other.getIsSystemTransaction()) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasCommitTime()) {
+ hash = (37 * hash) + COMMIT_TIME_FIELD_NUMBER;
+ hash = (53 * hash) + getCommitTime().hashCode();
+ }
+ hash = (37 * hash) + RECORD_SEQUENCE_FIELD_NUMBER;
+ hash = (53 * hash) + getRecordSequence().hashCode();
+ hash = (37 * hash) + TRANSACTION_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getTransactionId().hashCode();
+ hash = (37 * hash) + IS_LAST_RECORD_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsLastRecord());
+ hash = (37 * hash) + TABLE_FIELD_NUMBER;
+ hash = (53 * hash) + getTable().hashCode();
+ if (getColumnTypesCount() > 0) {
+ hash = (37 * hash) + COLUMN_TYPES_FIELD_NUMBER;
+ hash = (53 * hash) + getColumnTypesList().hashCode();
+ }
+ if (getModsCount() > 0) {
+ hash = (37 * hash) + MODS_FIELD_NUMBER;
+ hash = (53 * hash) + getModsList().hashCode();
+ }
+ hash = (37 * hash) + MOD_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getModType().hashCode();
+ hash = (37 * hash) + VALUE_CAPTURE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getValueCaptureType().hashCode();
+ hash = (37 * hash) + RECORD_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRecordCount());
+ hash = (37 * hash) + PARTITION_COUNT_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getPartitionCount());
+ hash = (37 * hash) + TRANSACTION_TAG_FIELD_NUMBER;
+ hash = (53 * hash) + getTransactionTag().hashCode();
+ hash = (37 * hash) + IS_SYSTEM_TRANSACTION_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsSystemTransaction());
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord 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.spanner.executor.v1.DataChangeRecord parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord 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.spanner.executor.v1.DataChangeRecord parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord 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.spanner.executor.v1.DataChangeRecord parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord 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.spanner.executor.v1.DataChangeRecord 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;
+ }
+ /**
+ *
+ *
+ * + * ChangeStream data change record. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DataChangeRecord} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ *
+ * @return Whether the commitTime field is set.
+ */
+ public boolean hasCommitTime() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ *
+ * @return The commitTime.
+ */
+ public com.google.protobuf.Timestamp getCommitTime() {
+ if (commitTimeBuilder_ == null) {
+ return commitTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : commitTime_;
+ } else {
+ return commitTimeBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ public Builder setCommitTime(com.google.protobuf.Timestamp value) {
+ if (commitTimeBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ commitTime_ = value;
+ } else {
+ commitTimeBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ public Builder setCommitTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+ if (commitTimeBuilder_ == null) {
+ commitTime_ = builderForValue.build();
+ } else {
+ commitTimeBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ public Builder mergeCommitTime(com.google.protobuf.Timestamp value) {
+ if (commitTimeBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && commitTime_ != null
+ && commitTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
+ getCommitTimeBuilder().mergeFrom(value);
+ } else {
+ commitTime_ = value;
+ }
+ } else {
+ commitTimeBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ public Builder clearCommitTime() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ commitTime_ = null;
+ if (commitTimeBuilder_ != null) {
+ commitTimeBuilder_.dispose();
+ commitTimeBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ public com.google.protobuf.Timestamp.Builder getCommitTimeBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getCommitTimeFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ public com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder() {
+ if (commitTimeBuilder_ != null) {
+ return commitTimeBuilder_.getMessageOrBuilder();
+ } else {
+ return commitTime_ == null
+ ? com.google.protobuf.Timestamp.getDefaultInstance()
+ : commitTime_;
+ }
+ }
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>
+ getCommitTimeFieldBuilder() {
+ if (commitTimeBuilder_ == null) {
+ commitTimeBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Timestamp,
+ com.google.protobuf.Timestamp.Builder,
+ com.google.protobuf.TimestampOrBuilder>(
+ getCommitTime(), getParentForChildren(), isClean());
+ commitTime_ = null;
+ }
+ return commitTimeBuilder_;
+ }
+
+ private java.lang.Object recordSequence_ = "";
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The recordSequence.
+ */
+ public java.lang.String getRecordSequence() {
+ java.lang.Object ref = recordSequence_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ recordSequence_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The bytes for recordSequence.
+ */
+ public com.google.protobuf.ByteString getRecordSequenceBytes() {
+ java.lang.Object ref = recordSequence_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ recordSequence_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @param value The recordSequence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordSequence(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ recordSequence_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordSequence() {
+ recordSequence_ = getDefaultInstance().getRecordSequence();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @param value The bytes for recordSequence to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordSequenceBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ recordSequence_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object transactionId_ = "";
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @return The transactionId.
+ */
+ public java.lang.String getTransactionId() {
+ java.lang.Object ref = transactionId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ transactionId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @return The bytes for transactionId.
+ */
+ public com.google.protobuf.ByteString getTransactionIdBytes() {
+ java.lang.Object ref = transactionId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ transactionId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @param value The transactionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransactionId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transactionId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTransactionId() {
+ transactionId_ = getDefaultInstance().getTransactionId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @param value The bytes for transactionId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransactionIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ transactionId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ private boolean isLastRecord_;
+ /**
+ *
+ *
+ * + * Indicates whether this is the last record for a transaction in the current + * partition. + *+ * + *
bool is_last_record = 4;
+ *
+ * @return The isLastRecord.
+ */
+ @java.lang.Override
+ public boolean getIsLastRecord() {
+ return isLastRecord_;
+ }
+ /**
+ *
+ *
+ * + * Indicates whether this is the last record for a transaction in the current + * partition. + *+ * + *
bool is_last_record = 4;
+ *
+ * @param value The isLastRecord to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsLastRecord(boolean value) {
+
+ isLastRecord_ = value;
+ bitField0_ |= 0x00000008;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Indicates whether this is the last record for a transaction in the current + * partition. + *+ * + *
bool is_last_record = 4;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIsLastRecord() {
+ bitField0_ = (bitField0_ & ~0x00000008);
+ isLastRecord_ = false;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object table_ = "";
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @return The table.
+ */
+ public java.lang.String getTable() {
+ java.lang.Object ref = table_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ table_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @return The bytes for table.
+ */
+ public com.google.protobuf.ByteString getTableBytes() {
+ java.lang.Object ref = table_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ table_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @param value The table to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTable(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ table_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTable() {
+ table_ = getDefaultInstance().getTable();
+ bitField0_ = (bitField0_ & ~0x00000010);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @param value The bytes for table to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTableBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ table_ = value;
+ bitField0_ |= 0x00000010;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List+ * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public java.util.List+ * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public int getColumnTypesCount() {
+ if (columnTypesBuilder_ == null) {
+ return columnTypes_.size();
+ } else {
+ return columnTypesBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType getColumnTypes(int index) {
+ if (columnTypesBuilder_ == null) {
+ return columnTypes_.get(index);
+ } else {
+ return columnTypesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder setColumnTypes(
+ int index, com.google.spanner.executor.v1.DataChangeRecord.ColumnType value) {
+ if (columnTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnTypesIsMutable();
+ columnTypes_.set(index, value);
+ onChanged();
+ } else {
+ columnTypesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder setColumnTypes(
+ int index,
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder builderForValue) {
+ if (columnTypesBuilder_ == null) {
+ ensureColumnTypesIsMutable();
+ columnTypes_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnTypesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder addColumnTypes(
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnType value) {
+ if (columnTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnTypesIsMutable();
+ columnTypes_.add(value);
+ onChanged();
+ } else {
+ columnTypesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder addColumnTypes(
+ int index, com.google.spanner.executor.v1.DataChangeRecord.ColumnType value) {
+ if (columnTypesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureColumnTypesIsMutable();
+ columnTypes_.add(index, value);
+ onChanged();
+ } else {
+ columnTypesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder addColumnTypes(
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder builderForValue) {
+ if (columnTypesBuilder_ == null) {
+ ensureColumnTypesIsMutable();
+ columnTypes_.add(builderForValue.build());
+ onChanged();
+ } else {
+ columnTypesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder addColumnTypes(
+ int index,
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder builderForValue) {
+ if (columnTypesBuilder_ == null) {
+ ensureColumnTypesIsMutable();
+ columnTypes_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ columnTypesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder addAllColumnTypes(
+ java.lang.Iterable extends com.google.spanner.executor.v1.DataChangeRecord.ColumnType>
+ values) {
+ if (columnTypesBuilder_ == null) {
+ ensureColumnTypesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columnTypes_);
+ onChanged();
+ } else {
+ columnTypesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder clearColumnTypes() {
+ if (columnTypesBuilder_ == null) {
+ columnTypes_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000020);
+ onChanged();
+ } else {
+ columnTypesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public Builder removeColumnTypes(int index) {
+ if (columnTypesBuilder_ == null) {
+ ensureColumnTypesIsMutable();
+ columnTypes_.remove(index);
+ onChanged();
+ } else {
+ columnTypesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder getColumnTypesBuilder(
+ int index) {
+ return getColumnTypesFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder
+ getColumnTypesOrBuilder(int index) {
+ if (columnTypesBuilder_ == null) {
+ return columnTypes_.get(index);
+ } else {
+ return columnTypesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public java.util.List<
+ ? extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder>
+ getColumnTypesOrBuilderList() {
+ if (columnTypesBuilder_ != null) {
+ return columnTypesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(columnTypes_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder
+ addColumnTypesBuilder() {
+ return getColumnTypesFieldBuilder()
+ .addBuilder(
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.ColumnType.Builder addColumnTypesBuilder(
+ int index) {
+ return getColumnTypesFieldBuilder()
+ .addBuilder(
+ index,
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnType.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ *
+ */
+ public java.util.List+ * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public java.util.List+ * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public int getModsCount() {
+ if (modsBuilder_ == null) {
+ return mods_.size();
+ } else {
+ return modsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.Mod getMods(int index) {
+ if (modsBuilder_ == null) {
+ return mods_.get(index);
+ } else {
+ return modsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder setMods(int index, com.google.spanner.executor.v1.DataChangeRecord.Mod value) {
+ if (modsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureModsIsMutable();
+ mods_.set(index, value);
+ onChanged();
+ } else {
+ modsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder setMods(
+ int index, com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder builderForValue) {
+ if (modsBuilder_ == null) {
+ ensureModsIsMutable();
+ mods_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ modsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder addMods(com.google.spanner.executor.v1.DataChangeRecord.Mod value) {
+ if (modsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureModsIsMutable();
+ mods_.add(value);
+ onChanged();
+ } else {
+ modsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder addMods(int index, com.google.spanner.executor.v1.DataChangeRecord.Mod value) {
+ if (modsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureModsIsMutable();
+ mods_.add(index, value);
+ onChanged();
+ } else {
+ modsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder addMods(
+ com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder builderForValue) {
+ if (modsBuilder_ == null) {
+ ensureModsIsMutable();
+ mods_.add(builderForValue.build());
+ onChanged();
+ } else {
+ modsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder addMods(
+ int index, com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder builderForValue) {
+ if (modsBuilder_ == null) {
+ ensureModsIsMutable();
+ mods_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ modsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder addAllMods(
+ java.lang.Iterable extends com.google.spanner.executor.v1.DataChangeRecord.Mod> values) {
+ if (modsBuilder_ == null) {
+ ensureModsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mods_);
+ onChanged();
+ } else {
+ modsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder clearMods() {
+ if (modsBuilder_ == null) {
+ mods_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000040);
+ onChanged();
+ } else {
+ modsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public Builder removeMods(int index) {
+ if (modsBuilder_ == null) {
+ ensureModsIsMutable();
+ mods_.remove(index);
+ onChanged();
+ } else {
+ modsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder getModsBuilder(int index) {
+ return getModsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBuilder(
+ int index) {
+ if (modsBuilder_ == null) {
+ return mods_.get(index);
+ } else {
+ return modsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public java.util.List extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder>
+ getModsOrBuilderList() {
+ if (modsBuilder_ != null) {
+ return modsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(mods_);
+ }
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder addModsBuilder() {
+ return getModsFieldBuilder()
+ .addBuilder(com.google.spanner.executor.v1.DataChangeRecord.Mod.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public com.google.spanner.executor.v1.DataChangeRecord.Mod.Builder addModsBuilder(int index) {
+ return getModsFieldBuilder()
+ .addBuilder(
+ index, com.google.spanner.executor.v1.DataChangeRecord.Mod.getDefaultInstance());
+ }
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ public java.util.List+ * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @return The modType.
+ */
+ public java.lang.String getModType() {
+ java.lang.Object ref = modType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ modType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @return The bytes for modType.
+ */
+ public com.google.protobuf.ByteString getModTypeBytes() {
+ java.lang.Object ref = modType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ modType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @param value The modType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ modType_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearModType() {
+ modType_ = getDefaultInstance().getModType();
+ bitField0_ = (bitField0_ & ~0x00000080);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @param value The bytes for modType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setModTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ modType_ = value;
+ bitField0_ |= 0x00000080;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object valueCaptureType_ = "";
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @return The valueCaptureType.
+ */
+ public java.lang.String getValueCaptureType() {
+ java.lang.Object ref = valueCaptureType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ valueCaptureType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @return The bytes for valueCaptureType.
+ */
+ public com.google.protobuf.ByteString getValueCaptureTypeBytes() {
+ java.lang.Object ref = valueCaptureType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ valueCaptureType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @param value The valueCaptureType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueCaptureType(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ valueCaptureType_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearValueCaptureType() {
+ valueCaptureType_ = getDefaultInstance().getValueCaptureType();
+ bitField0_ = (bitField0_ & ~0x00000100);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @param value The bytes for valueCaptureType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValueCaptureTypeBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ valueCaptureType_ = value;
+ bitField0_ |= 0x00000100;
+ onChanged();
+ return this;
+ }
+
+ private long recordCount_;
+ /**
+ *
+ *
+ * + * Number of records in transactions. + *+ * + *
int64 record_count = 10;
+ *
+ * @return The recordCount.
+ */
+ @java.lang.Override
+ public long getRecordCount() {
+ return recordCount_;
+ }
+ /**
+ *
+ *
+ * + * Number of records in transactions. + *+ * + *
int64 record_count = 10;
+ *
+ * @param value The recordCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRecordCount(long value) {
+
+ recordCount_ = value;
+ bitField0_ |= 0x00000200;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of records in transactions. + *+ * + *
int64 record_count = 10;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearRecordCount() {
+ bitField0_ = (bitField0_ & ~0x00000200);
+ recordCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private long partitionCount_;
+ /**
+ *
+ *
+ * + * Number of partitions in transactions. + *+ * + *
int64 partition_count = 11;
+ *
+ * @return The partitionCount.
+ */
+ @java.lang.Override
+ public long getPartitionCount() {
+ return partitionCount_;
+ }
+ /**
+ *
+ *
+ * + * Number of partitions in transactions. + *+ * + *
int64 partition_count = 11;
+ *
+ * @param value The partitionCount to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPartitionCount(long value) {
+
+ partitionCount_ = value;
+ bitField0_ |= 0x00000400;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Number of partitions in transactions. + *+ * + *
int64 partition_count = 11;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearPartitionCount() {
+ bitField0_ = (bitField0_ & ~0x00000400);
+ partitionCount_ = 0L;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object transactionTag_ = "";
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @return The transactionTag.
+ */
+ public java.lang.String getTransactionTag() {
+ java.lang.Object ref = transactionTag_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ transactionTag_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @return The bytes for transactionTag.
+ */
+ public com.google.protobuf.ByteString getTransactionTagBytes() {
+ java.lang.Object ref = transactionTag_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ transactionTag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @param value The transactionTag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransactionTag(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ transactionTag_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearTransactionTag() {
+ transactionTag_ = getDefaultInstance().getTransactionTag();
+ bitField0_ = (bitField0_ & ~0x00000800);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @param value The bytes for transactionTag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTransactionTagBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ transactionTag_ = value;
+ bitField0_ |= 0x00000800;
+ onChanged();
+ return this;
+ }
+
+ private boolean isSystemTransaction_;
+ /**
+ *
+ *
+ * + * Whether the transaction is a system transactionn. + *+ * + *
bool is_system_transaction = 13;
+ *
+ * @return The isSystemTransaction.
+ */
+ @java.lang.Override
+ public boolean getIsSystemTransaction() {
+ return isSystemTransaction_;
+ }
+ /**
+ *
+ *
+ * + * Whether the transaction is a system transactionn. + *+ * + *
bool is_system_transaction = 13;
+ *
+ * @param value The isSystemTransaction to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIsSystemTransaction(boolean value) {
+
+ isSystemTransaction_ = value;
+ bitField0_ |= 0x00001000;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Whether the transaction is a system transactionn. + *+ * + *
bool is_system_transaction = 13;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearIsSystemTransaction() {
+ bitField0_ = (bitField0_ & ~0x00001000);
+ isSystemTransaction_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.DataChangeRecord)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.DataChangeRecord)
+ private static final com.google.spanner.executor.v1.DataChangeRecord DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DataChangeRecord();
+ }
+
+ public static com.google.spanner.executor.v1.DataChangeRecord getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ *
+ * @return Whether the commitTime field is set.
+ */
+ boolean hasCommitTime();
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ *
+ * @return The commitTime.
+ */
+ com.google.protobuf.Timestamp getCommitTime();
+ /**
+ *
+ *
+ * + * The timestamp in which the change was committed. + *+ * + *
.google.protobuf.Timestamp commit_time = 1;
+ */
+ com.google.protobuf.TimestampOrBuilder getCommitTimeOrBuilder();
+
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The recordSequence.
+ */
+ java.lang.String getRecordSequence();
+ /**
+ *
+ *
+ * + * The sequence number for the record within the transaction. + *+ * + *
string record_sequence = 2;
+ *
+ * @return The bytes for recordSequence.
+ */
+ com.google.protobuf.ByteString getRecordSequenceBytes();
+
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @return The transactionId.
+ */
+ java.lang.String getTransactionId();
+ /**
+ *
+ *
+ * + * A globally unique string that represents the transaction in which the + * change was committed. + *+ * + *
string transaction_id = 3;
+ *
+ * @return The bytes for transactionId.
+ */
+ com.google.protobuf.ByteString getTransactionIdBytes();
+
+ /**
+ *
+ *
+ * + * Indicates whether this is the last record for a transaction in the current + * partition. + *+ * + *
bool is_last_record = 4;
+ *
+ * @return The isLastRecord.
+ */
+ boolean getIsLastRecord();
+
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @return The table.
+ */
+ java.lang.String getTable();
+ /**
+ *
+ *
+ * + * Name of the table affected by the change. + *+ * + *
string table = 5;
+ *
+ * @return The bytes for table.
+ */
+ com.google.protobuf.ByteString getTableBytes();
+
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ java.util.List+ * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnType getColumnTypes(int index);
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ int getColumnTypesCount();
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ java.util.List extends com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder>
+ getColumnTypesOrBuilderList();
+ /**
+ *
+ *
+ * + * Column types defined in the schema. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.ColumnType column_types = 6;
+ */
+ com.google.spanner.executor.v1.DataChangeRecord.ColumnTypeOrBuilder getColumnTypesOrBuilder(
+ int index);
+
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ java.util.List+ * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ com.google.spanner.executor.v1.DataChangeRecord.Mod getMods(int index);
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ int getModsCount();
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ java.util.List extends com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder>
+ getModsOrBuilderList();
+ /**
+ *
+ *
+ * + * Changes made in the transaction. + *+ * + *
repeated .google.spanner.executor.v1.DataChangeRecord.Mod mods = 7;
+ */
+ com.google.spanner.executor.v1.DataChangeRecord.ModOrBuilder getModsOrBuilder(int index);
+
+ /**
+ *
+ *
+ * + * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @return The modType.
+ */
+ java.lang.String getModType();
+ /**
+ *
+ *
+ * + * Describes the type of change. One of INSERT, UPDATE or DELETE. + *+ * + *
string mod_type = 8;
+ *
+ * @return The bytes for modType.
+ */
+ com.google.protobuf.ByteString getModTypeBytes();
+
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @return The valueCaptureType.
+ */
+ java.lang.String getValueCaptureType();
+ /**
+ *
+ *
+ * + * One of value capture type: NEW_VALUES, OLD_VALUES, OLD_AND_NEW_VALUES. + *+ * + *
string value_capture_type = 9;
+ *
+ * @return The bytes for valueCaptureType.
+ */
+ com.google.protobuf.ByteString getValueCaptureTypeBytes();
+
+ /**
+ *
+ *
+ * + * Number of records in transactions. + *+ * + *
int64 record_count = 10;
+ *
+ * @return The recordCount.
+ */
+ long getRecordCount();
+
+ /**
+ *
+ *
+ * + * Number of partitions in transactions. + *+ * + *
int64 partition_count = 11;
+ *
+ * @return The partitionCount.
+ */
+ long getPartitionCount();
+
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @return The transactionTag.
+ */
+ java.lang.String getTransactionTag();
+ /**
+ *
+ *
+ * + * Transaction tag info. + *+ * + *
string transaction_tag = 12;
+ *
+ * @return The bytes for transactionTag.
+ */
+ com.google.protobuf.ByteString getTransactionTagBytes();
+
+ /**
+ *
+ *
+ * + * Whether the transaction is a system transactionn. + *+ * + *
bool is_system_transaction = 13;
+ *
+ * @return The isSystemTransaction.
+ */
+ boolean getIsSystemTransaction();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java
new file mode 100644
index 00000000000..35017e99411
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudBackupAction.java
@@ -0,0 +1,989 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DeleteCloudBackupAction} + */ +public final class DeleteCloudBackupAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.DeleteCloudBackupAction) + DeleteCloudBackupActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCloudBackupAction.newBuilder() to construct. + private DeleteCloudBackupAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DeleteCloudBackupAction() { + projectId_ = ""; + instanceId_ = ""; + backupId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCloudBackupAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DeleteCloudBackupAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.DeleteCloudBackupAction.class, + com.google.spanner.executor.v1.DeleteCloudBackupAction.Builder.class); + } + + public static final int PROJECT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object projectId_ = ""; + /** + * + * + *
+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INSTANCE_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object instanceId_ = "";
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ 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 BACKUP_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object backupId_ = "";
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ @java.lang.Override
+ public java.lang.String getBackupId() {
+ java.lang.Object ref = backupId_;
+ 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();
+ backupId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getBackupIdBytes() {
+ java.lang.Object ref = backupId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ backupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, backupId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, backupId_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.DeleteCloudBackupAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.DeleteCloudBackupAction other =
+ (com.google.spanner.executor.v1.DeleteCloudBackupAction) obj;
+
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getBackupId().equals(other.getBackupId())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getBackupId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction 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.spanner.executor.v1.DeleteCloudBackupAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction 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.spanner.executor.v1.DeleteCloudBackupAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction 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.spanner.executor.v1.DeleteCloudBackupAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction 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.spanner.executor.v1.DeleteCloudBackupAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner database backup. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DeleteCloudBackupAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object instanceId_ = "";
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object backupId_ = "";
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ public java.lang.String getBackupId() {
+ java.lang.Object ref = backupId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ backupId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ public com.google.protobuf.ByteString getBackupIdBytes() {
+ java.lang.Object ref = backupId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ backupId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @param value The backupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBackupId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ backupId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBackupId() {
+ backupId_ = getDefaultInstance().getBackupId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @param value The bytes for backupId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBackupIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ backupId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.DeleteCloudBackupAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.DeleteCloudBackupAction)
+ private static final com.google.spanner.executor.v1.DeleteCloudBackupAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DeleteCloudBackupAction();
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudBackupAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 1;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 2;
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The backupId.
+ */
+ java.lang.String getBackupId();
+ /**
+ *
+ *
+ * + * The id of the backup to delete, e.g. "test-backup". + *+ * + *
string backup_id = 3;
+ *
+ * @return The bytes for backupId.
+ */
+ com.google.protobuf.ByteString getBackupIdBytes();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java
new file mode 100644
index 00000000000..dd686b8f6a3
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteCloudInstanceAction.java
@@ -0,0 +1,807 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DeleteCloudInstanceAction} + */ +public final class DeleteCloudInstanceAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.DeleteCloudInstanceAction) + DeleteCloudInstanceActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteCloudInstanceAction.newBuilder() to construct. + private DeleteCloudInstanceAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DeleteCloudInstanceAction() { + instanceId_ = ""; + projectId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteCloudInstanceAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DeleteCloudInstanceAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.DeleteCloudInstanceAction.class, + com.google.spanner.executor.v1.DeleteCloudInstanceAction.Builder.class); + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + /** + * + * + *
+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ 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 PROJECT_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.DeleteCloudInstanceAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.DeleteCloudInstanceAction other =
+ (com.google.spanner.executor.v1.DeleteCloudInstanceAction) obj;
+
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction 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.spanner.executor.v1.DeleteCloudInstanceAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction 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.spanner.executor.v1.DeleteCloudInstanceAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction 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.spanner.executor.v1.DeleteCloudInstanceAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction 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.spanner.executor.v1.DeleteCloudInstanceAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a Cloud Spanner instance. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DeleteCloudInstanceAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.DeleteCloudInstanceAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.DeleteCloudInstanceAction)
+ private static final com.google.spanner.executor.v1.DeleteCloudInstanceAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DeleteCloudInstanceAction();
+ }
+
+ public static com.google.spanner.executor.v1.DeleteCloudInstanceAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ java.lang.String getInstanceId();
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ com.google.protobuf.ByteString getInstanceIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java
new file mode 100644
index 00000000000..4797f360e46
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DeleteUserInstanceConfigAction.java
@@ -0,0 +1,812 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that deletes a user instance configs. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DeleteUserInstanceConfigAction} + */ +public final class DeleteUserInstanceConfigAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.DeleteUserInstanceConfigAction) + DeleteUserInstanceConfigActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteUserInstanceConfigAction.newBuilder() to construct. + private DeleteUserInstanceConfigAction( + com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DeleteUserInstanceConfigAction() { + userConfigId_ = ""; + projectId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteUserInstanceConfigAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DeleteUserInstanceConfigAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.class, + com.google.spanner.executor.v1.DeleteUserInstanceConfigAction.Builder.class); + } + + public static final int USER_CONFIG_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object userConfigId_ = ""; + /** + * + * + *
+ * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The userConfigId.
+ */
+ @java.lang.Override
+ public java.lang.String getUserConfigId() {
+ java.lang.Object ref = userConfigId_;
+ 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();
+ userConfigId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The bytes for userConfigId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getUserConfigIdBytes() {
+ java.lang.Object ref = userConfigId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ userConfigId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PROJECT_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userConfigId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, userConfigId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userConfigId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, userConfigId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.DeleteUserInstanceConfigAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.DeleteUserInstanceConfigAction other =
+ (com.google.spanner.executor.v1.DeleteUserInstanceConfigAction) obj;
+
+ if (!getUserConfigId().equals(other.getUserConfigId())) return false;
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + USER_CONFIG_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getUserConfigId().hashCode();
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction 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.spanner.executor.v1.DeleteUserInstanceConfigAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction 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.spanner.executor.v1.DeleteUserInstanceConfigAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction 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.spanner.executor.v1.DeleteUserInstanceConfigAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction 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.spanner.executor.v1.DeleteUserInstanceConfigAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that deletes a user instance configs. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DeleteUserInstanceConfigAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The userConfigId.
+ */
+ public java.lang.String getUserConfigId() {
+ java.lang.Object ref = userConfigId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ userConfigId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The bytes for userConfigId.
+ */
+ public com.google.protobuf.ByteString getUserConfigIdBytes() {
+ java.lang.Object ref = userConfigId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ userConfigId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @param value The userConfigId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserConfigId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ userConfigId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearUserConfigId() {
+ userConfigId_ = getDefaultInstance().getUserConfigId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @param value The bytes for userConfigId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUserConfigIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ userConfigId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.DeleteUserInstanceConfigAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.DeleteUserInstanceConfigAction)
+ private static final com.google.spanner.executor.v1.DeleteUserInstanceConfigAction
+ DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DeleteUserInstanceConfigAction();
+ }
+
+ public static com.google.spanner.executor.v1.DeleteUserInstanceConfigAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The userConfigId.
+ */
+ java.lang.String getUserConfigId();
+ /**
+ *
+ *
+ * + * User instance config ID (not path), e.g. "custom-config". + *+ * + *
string user_config_id = 1;
+ *
+ * @return The bytes for userConfigId.
+ */
+ com.google.protobuf.ByteString getUserConfigIdBytes();
+
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ java.lang.String getProjectId();
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ com.google.protobuf.ByteString getProjectIdBytes();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java
new file mode 100644
index 00000000000..0da95103de4
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DmlAction.java
@@ -0,0 +1,841 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * A single DML statement. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DmlAction} + */ +public final class DmlAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.DmlAction) + DmlActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DmlAction.newBuilder() to construct. + private DmlAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DmlAction() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DmlAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DmlAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DmlAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.DmlAction.class, + com.google.spanner.executor.v1.DmlAction.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_FIELD_NUMBER = 1; + private com.google.spanner.executor.v1.QueryAction update_; + /** + * + * + *
+ * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ *
+ * @return Whether the update field is set.
+ */
+ @java.lang.Override
+ public boolean hasUpdate() {
+ return update_ != null;
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ *
+ * @return The update.
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.QueryAction getUpdate() {
+ return update_ == null
+ ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance()
+ : update_;
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ @java.lang.Override
+ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder() {
+ return update_ == null
+ ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance()
+ : update_;
+ }
+
+ public static final int AUTOCOMMIT_IF_SUPPORTED_FIELD_NUMBER = 2;
+ private boolean autocommitIfSupported_ = false;
+ /**
+ *
+ *
+ * + * Whether to autocommit the transaction after executing the DML statement, + * if the Executor supports autocommit. + *+ * + *
optional bool autocommit_if_supported = 2;
+ *
+ * @return Whether the autocommitIfSupported field is set.
+ */
+ @java.lang.Override
+ public boolean hasAutocommitIfSupported() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * Whether to autocommit the transaction after executing the DML statement, + * if the Executor supports autocommit. + *+ * + *
optional bool autocommit_if_supported = 2;
+ *
+ * @return The autocommitIfSupported.
+ */
+ @java.lang.Override
+ public boolean getAutocommitIfSupported() {
+ return autocommitIfSupported_;
+ }
+
+ 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 (update_ != null) {
+ output.writeMessage(1, getUpdate());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ output.writeBool(2, autocommitIfSupported_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (update_ != null) {
+ size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdate());
+ }
+ if (((bitField0_ & 0x00000001) != 0)) {
+ size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, autocommitIfSupported_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.DmlAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.DmlAction other = (com.google.spanner.executor.v1.DmlAction) obj;
+
+ if (hasUpdate() != other.hasUpdate()) return false;
+ if (hasUpdate()) {
+ if (!getUpdate().equals(other.getUpdate())) return false;
+ }
+ if (hasAutocommitIfSupported() != other.hasAutocommitIfSupported()) return false;
+ if (hasAutocommitIfSupported()) {
+ if (getAutocommitIfSupported() != other.getAutocommitIfSupported()) return false;
+ }
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasUpdate()) {
+ hash = (37 * hash) + UPDATE_FIELD_NUMBER;
+ hash = (53 * hash) + getUpdate().hashCode();
+ }
+ if (hasAutocommitIfSupported()) {
+ hash = (37 * hash) + AUTOCOMMIT_IF_SUPPORTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAutocommitIfSupported());
+ }
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction parseFrom(java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction 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.spanner.executor.v1.DmlAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction 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.spanner.executor.v1.DmlAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction 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.spanner.executor.v1.DmlAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction 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.spanner.executor.v1.DmlAction 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;
+ }
+ /**
+ *
+ *
+ * + * A single DML statement. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DmlAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ *
+ * @return Whether the update field is set.
+ */
+ public boolean hasUpdate() {
+ return ((bitField0_ & 0x00000001) != 0);
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ *
+ * @return The update.
+ */
+ public com.google.spanner.executor.v1.QueryAction getUpdate() {
+ if (updateBuilder_ == null) {
+ return update_ == null
+ ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance()
+ : update_;
+ } else {
+ return updateBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ public Builder setUpdate(com.google.spanner.executor.v1.QueryAction value) {
+ if (updateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ update_ = value;
+ } else {
+ updateBuilder_.setMessage(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ public Builder setUpdate(com.google.spanner.executor.v1.QueryAction.Builder builderForValue) {
+ if (updateBuilder_ == null) {
+ update_ = builderForValue.build();
+ } else {
+ updateBuilder_.setMessage(builderForValue.build());
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ public Builder mergeUpdate(com.google.spanner.executor.v1.QueryAction value) {
+ if (updateBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)
+ && update_ != null
+ && update_ != com.google.spanner.executor.v1.QueryAction.getDefaultInstance()) {
+ getUpdateBuilder().mergeFrom(value);
+ } else {
+ update_ = value;
+ }
+ } else {
+ updateBuilder_.mergeFrom(value);
+ }
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ public Builder clearUpdate() {
+ bitField0_ = (bitField0_ & ~0x00000001);
+ update_ = null;
+ if (updateBuilder_ != null) {
+ updateBuilder_.dispose();
+ updateBuilder_ = null;
+ }
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ public com.google.spanner.executor.v1.QueryAction.Builder getUpdateBuilder() {
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return getUpdateFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ public com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder() {
+ if (updateBuilder_ != null) {
+ return updateBuilder_.getMessageOrBuilder();
+ } else {
+ return update_ == null
+ ? com.google.spanner.executor.v1.QueryAction.getDefaultInstance()
+ : update_;
+ }
+ }
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.QueryAction,
+ com.google.spanner.executor.v1.QueryAction.Builder,
+ com.google.spanner.executor.v1.QueryActionOrBuilder>
+ getUpdateFieldBuilder() {
+ if (updateBuilder_ == null) {
+ updateBuilder_ =
+ new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.spanner.executor.v1.QueryAction,
+ com.google.spanner.executor.v1.QueryAction.Builder,
+ com.google.spanner.executor.v1.QueryActionOrBuilder>(
+ getUpdate(), getParentForChildren(), isClean());
+ update_ = null;
+ }
+ return updateBuilder_;
+ }
+
+ private boolean autocommitIfSupported_;
+ /**
+ *
+ *
+ * + * Whether to autocommit the transaction after executing the DML statement, + * if the Executor supports autocommit. + *+ * + *
optional bool autocommit_if_supported = 2;
+ *
+ * @return Whether the autocommitIfSupported field is set.
+ */
+ @java.lang.Override
+ public boolean hasAutocommitIfSupported() {
+ return ((bitField0_ & 0x00000002) != 0);
+ }
+ /**
+ *
+ *
+ * + * Whether to autocommit the transaction after executing the DML statement, + * if the Executor supports autocommit. + *+ * + *
optional bool autocommit_if_supported = 2;
+ *
+ * @return The autocommitIfSupported.
+ */
+ @java.lang.Override
+ public boolean getAutocommitIfSupported() {
+ return autocommitIfSupported_;
+ }
+ /**
+ *
+ *
+ * + * Whether to autocommit the transaction after executing the DML statement, + * if the Executor supports autocommit. + *+ * + *
optional bool autocommit_if_supported = 2;
+ *
+ * @param value The autocommitIfSupported to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAutocommitIfSupported(boolean value) {
+
+ autocommitIfSupported_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Whether to autocommit the transaction after executing the DML statement, + * if the Executor supports autocommit. + *+ * + *
optional bool autocommit_if_supported = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearAutocommitIfSupported() {
+ bitField0_ = (bitField0_ & ~0x00000002);
+ autocommitIfSupported_ = false;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.DmlAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.DmlAction)
+ private static final com.google.spanner.executor.v1.DmlAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DmlAction();
+ }
+
+ public static com.google.spanner.executor.v1.DmlAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ *
+ * @return Whether the update field is set.
+ */
+ boolean hasUpdate();
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ *
+ * @return The update.
+ */
+ com.google.spanner.executor.v1.QueryAction getUpdate();
+ /**
+ *
+ *
+ * + * DML statement. + *+ * + *
.google.spanner.executor.v1.QueryAction update = 1;
+ */
+ com.google.spanner.executor.v1.QueryActionOrBuilder getUpdateOrBuilder();
+
+ /**
+ *
+ *
+ * + * Whether to autocommit the transaction after executing the DML statement, + * if the Executor supports autocommit. + *+ * + *
optional bool autocommit_if_supported = 2;
+ *
+ * @return Whether the autocommitIfSupported field is set.
+ */
+ boolean hasAutocommitIfSupported();
+ /**
+ *
+ *
+ * + * Whether to autocommit the transaction after executing the DML statement, + * if the Executor supports autocommit. + *+ * + *
optional bool autocommit_if_supported = 2;
+ *
+ * @return The autocommitIfSupported.
+ */
+ boolean getAutocommitIfSupported();
+}
diff --git a/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java
new file mode 100644
index 00000000000..c584cae1fdb
--- /dev/null
+++ b/proto-google-cloud-spanner-executor-v1/src/main/java/com/google/spanner/executor/v1/DropCloudDatabaseAction.java
@@ -0,0 +1,989 @@
+/*
+ * Copyright 2023 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+// Generated by the protocol buffer compiler. DO NOT EDIT!
+// source: google/spanner/executor/v1/cloud_executor.proto
+
+package com.google.spanner.executor.v1;
+
+/**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DropCloudDatabaseAction} + */ +public final class DropCloudDatabaseAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.spanner.executor.v1.DropCloudDatabaseAction) + DropCloudDatabaseActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropCloudDatabaseAction.newBuilder() to construct. + private DropCloudDatabaseAction(com.google.protobuf.GeneratedMessageV3.Builder> builder) { + super(builder); + } + + private DropCloudDatabaseAction() { + instanceId_ = ""; + projectId_ = ""; + databaseId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DropCloudDatabaseAction(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.spanner.executor.v1.CloudExecutorProto + .internal_static_google_spanner_executor_v1_DropCloudDatabaseAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.spanner.executor.v1.DropCloudDatabaseAction.class, + com.google.spanner.executor.v1.DropCloudDatabaseAction.Builder.class); + } + + public static final int INSTANCE_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instanceId_ = ""; + /** + * + * + *
+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ @java.lang.Override
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ @java.lang.Override
+ 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 PROJECT_ID_FIELD_NUMBER = 2;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ @java.lang.Override
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ 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();
+ projectId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATABASE_ID_FIELD_NUMBER = 3;
+
+ @SuppressWarnings("serial")
+ private volatile java.lang.Object databaseId_ = "";
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The databaseId.
+ */
+ @java.lang.Override
+ public java.lang.String getDatabaseId() {
+ java.lang.Object ref = databaseId_;
+ 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();
+ databaseId_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The bytes for databaseId.
+ */
+ @java.lang.Override
+ public com.google.protobuf.ByteString getDatabaseIdBytes() {
+ java.lang.Object ref = databaseId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ databaseId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, databaseId_);
+ }
+ getUnknownFields().writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(instanceId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instanceId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_);
+ }
+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(databaseId_)) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, databaseId_);
+ }
+ size += getUnknownFields().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.spanner.executor.v1.DropCloudDatabaseAction)) {
+ return super.equals(obj);
+ }
+ com.google.spanner.executor.v1.DropCloudDatabaseAction other =
+ (com.google.spanner.executor.v1.DropCloudDatabaseAction) obj;
+
+ if (!getInstanceId().equals(other.getInstanceId())) return false;
+ if (!getProjectId().equals(other.getProjectId())) return false;
+ if (!getDatabaseId().equals(other.getDatabaseId())) return false;
+ if (!getUnknownFields().equals(other.getUnknownFields())) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + INSTANCE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getInstanceId().hashCode();
+ hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getProjectId().hashCode();
+ hash = (37 * hash) + DATABASE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getDatabaseId().hashCode();
+ hash = (29 * hash) + getUnknownFields().hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction parseFrom(
+ java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction parseFrom(
+ java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction 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.spanner.executor.v1.DropCloudDatabaseAction parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction parseFrom(
+ byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction parseFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction 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.spanner.executor.v1.DropCloudDatabaseAction parseDelimitedFrom(
+ java.io.InputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction 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.spanner.executor.v1.DropCloudDatabaseAction parseFrom(
+ com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction 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.spanner.executor.v1.DropCloudDatabaseAction 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;
+ }
+ /**
+ *
+ *
+ * + * Action that drops a Cloud Spanner database. + *+ * + * Protobuf type {@code google.spanner.executor.v1.DropCloudDatabaseAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
+ * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return The bytes for instanceId.
+ */
+ 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;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @param value The instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearInstanceId() {
+ instanceId_ = getDefaultInstance().getInstanceId();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud instance ID (not path), e.g. "test-instance". + *+ * + *
string instance_id = 1;
+ *
+ * @param value The bytes for instanceId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ instanceId_ = value;
+ bitField0_ |= 0x00000001;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object projectId_ = "";
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The projectId.
+ */
+ public java.lang.String getProjectId() {
+ java.lang.Object ref = projectId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ projectId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return The bytes for projectId.
+ */
+ public com.google.protobuf.ByteString getProjectIdBytes() {
+ java.lang.Object ref = projectId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ projectId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearProjectId() {
+ projectId_ = getDefaultInstance().getProjectId();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud project ID, e.g. "spanner-cloud-systest". + *+ * + *
string project_id = 2;
+ *
+ * @param value The bytes for projectId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setProjectIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ projectId_ = value;
+ bitField0_ |= 0x00000002;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object databaseId_ = "";
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The databaseId.
+ */
+ public java.lang.String getDatabaseId() {
+ java.lang.Object ref = databaseId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ databaseId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return The bytes for databaseId.
+ */
+ public com.google.protobuf.ByteString getDatabaseIdBytes() {
+ java.lang.Object ref = databaseId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
+ databaseId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @param value The databaseId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseId(java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ databaseId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearDatabaseId() {
+ databaseId_ = getDefaultInstance().getDatabaseId();
+ bitField0_ = (bitField0_ & ~0x00000004);
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Cloud database ID (not full path), e.g. "db0". + *+ * + *
string database_id = 3;
+ *
+ * @param value The bytes for databaseId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDatabaseIdBytes(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ databaseId_ = value;
+ bitField0_ |= 0x00000004;
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+ // @@protoc_insertion_point(builder_scope:google.spanner.executor.v1.DropCloudDatabaseAction)
+ }
+
+ // @@protoc_insertion_point(class_scope:google.spanner.executor.v1.DropCloudDatabaseAction)
+ private static final com.google.spanner.executor.v1.DropCloudDatabaseAction DEFAULT_INSTANCE;
+
+ static {
+ DEFAULT_INSTANCE = new com.google.spanner.executor.v1.DropCloudDatabaseAction();
+ }
+
+ public static com.google.spanner.executor.v1.DropCloudDatabaseAction getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser